MethodDoc.php 765 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
<?php
/**
 * @link http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

namespace yii\apidoc\models;

class MethodDoc extends FunctionDoc
{
	public $isAbstract;
	public $isFinal;
14

15
	public $isStatic;
16 17 18 19

	public $visibility;

	// will be set by creating class
20
	public $definedBy;
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

	/**
	 * @param \phpDocumentor\Reflection\ClassReflector\MethodReflector $reflector
	 * @param array $config
	 */
	public function __construct($reflector, $config = [])
	{
		parent::__construct($reflector, $config);

		$this->isAbstract = $reflector->isAbstract();
		$this->isFinal = $reflector->isFinal();
		$this->isStatic = $reflector->isStatic();

		$this->visibility = $reflector->getVisibility();
	}
36
}