InterfaceDoc.php 711 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 11 12 13

class InterfaceDoc extends BaseDoc
{
	public $parentInterfaces = [];

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

17
	// TODO
18 19 20 21 22 23
	public $methods = [];

	/**
	 * @param \phpDocumentor\Reflection\InterfaceReflector $reflector
	 * @param array $config
	 */
24
	public function __construct($reflector, $config = [])
25
	{
26
		parent::__construct($reflector, $config);
27 28 29 30 31 32 33 34

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

		// TODO methods
	}
}