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.
		
		
		
		
			
				
					45 lines
				
				899 B
			
		
		
			
		
	
	
					45 lines
				
				899 B
			| 
											12 years ago
										 | <?php
 | ||
|  | /**
 | ||
|  |  * 
 | ||
|  |  * 
 | ||
|  |  * @author Carsten Brandt <mail@cebe.cc>
 | ||
|  |  */
 | ||
|  | 
 | ||
|  | namespace yii\phpdoc\models;
 | ||
|  | 
 | ||
|  | class InterfaceDoc extends BaseDoc
 | ||
|  | {
 | ||
|  | 	public $parentInterfaces = [];
 | ||
|  | 
 | ||
|  | 	public $implementedBy = [];
 | ||
|  | 
 | ||
|  | 	public $methods = [];
 | ||
|  | 
 | ||
|  | 	/**
 | ||
|  | 	 * @param \phpDocumentor\Reflection\InterfaceReflector $reflector
 | ||
|  | 	 * @param Context $context
 | ||
|  | 	 * @param array $config
 | ||
|  | 	 */
 | ||
|  | 	public function __construct($reflector, $context = null, $config = [])
 | ||
|  | 	{
 | ||
|  | 		// base properties
 | ||
|  | 		$this->name = ltrim($reflector->getName(), '\\');
 | ||
|  | 		$this->startLine = $reflector->getNode()->getAttribute('startLine');
 | ||
|  | 		$this->endLine = $reflector->getNode()->getAttribute('endLine');
 | ||
|  | 
 | ||
|  | 		foreach($reflector->getParentInterfaces() as $interface) {
 | ||
|  | 			$this->parentInterfaces[] = ltrim($interface, '\\');
 | ||
|  | 		}
 | ||
|  | 
 | ||
|  | 		// TODO methods
 | ||
|  | 
 | ||
|  | 		// TODO docblock
 | ||
|  | 
 | ||
|  | 		if ($context !== null) {
 | ||
|  | 			$context->addInterface($this);
 | ||
|  | 		}
 | ||
|  | 
 | ||
|  | 		parent::__construct($config);
 | ||
|  | 	}
 | ||
|  | 
 | ||
|  | }
 |