You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
909 B
42 lines
909 B
11 years ago
|
<?php
|
||
|
/**
|
||
11 years ago
|
* @link http://www.yiiframework.com/
|
||
|
* @copyright Copyright (c) 2008 Yii Software LLC
|
||
|
* @license http://www.yiiframework.com/license/
|
||
11 years ago
|
*/
|
||
|
|
||
11 years ago
|
namespace yii\apidoc\models;
|
||
11 years ago
|
|
||
11 years ago
|
/**
|
||
11 years ago
|
* Represents API documentation information for an `interface`.
|
||
11 years ago
|
*
|
||
|
* @author Carsten Brandt <mail@cebe.cc>
|
||
|
* @since 2.0
|
||
|
*/
|
||
11 years ago
|
class InterfaceDoc extends TypeDoc
|
||
11 years ago
|
{
|
||
|
public $parentInterfaces = [];
|
||
|
|
||
11 years ago
|
// will be set by Context::updateReferences()
|
||
11 years ago
|
public $implementedBy = [];
|
||
|
|
||
|
/**
|
||
|
* @param \phpDocumentor\Reflection\InterfaceReflector $reflector
|
||
|
* @param array $config
|
||
|
*/
|
||
11 years ago
|
public function __construct($reflector = null, $config = [])
|
||
11 years ago
|
{
|
||
11 years ago
|
parent::__construct($reflector, $config);
|
||
11 years ago
|
|
||
11 years ago
|
if ($reflector === null) {
|
||
|
return;
|
||
|
}
|
||
|
|
||
11 years ago
|
foreach($reflector->getParentInterfaces() as $interface) {
|
||
|
$this->parentInterfaces[] = ltrim($interface, '\\');
|
||
|
}
|
||
|
|
||
11 years ago
|
// interface can not have properties
|
||
|
$this->properties = null;
|
||
11 years ago
|
}
|
||
|
}
|