InterfaceDoc.php 727 Bytes
Newer Older
1 2
<?php
/**
3 4 5
 * @link http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
6 7
 */

8
namespace yii\apidoc\models;
9

10
class InterfaceDoc extends TypeDoc
11 12 13
{
	public $parentInterfaces = [];

14
	// will be set by Context::updateReferences()
15 16 17 18 19 20
	public $implementedBy = [];

	/**
	 * @param \phpDocumentor\Reflection\InterfaceReflector $reflector
	 * @param array $config
	 */
21
	public function __construct($reflector, $config = [])
22
	{
23
		parent::__construct($reflector, $config);
24 25 26 27 28

		foreach($reflector->getParentInterfaces() as $interface) {
			$this->parentInterfaces[] = ltrim($interface, '\\');
		}

29 30
		// interface can not have properties
		$this->properties = null;
31 32
	}
}