芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/www/vendor/mockery/mockery/library/Mockery/Generator/DefinedTargetClass.php
rfc = $rfc; $this->name = $alias === null ? $rfc->getName() : $alias; } public static function factory($name, $alias = null) { return new self(new \ReflectionClass($name), $alias); } public function getName() { return $this->name; } public function isAbstract() { return $this->rfc->isAbstract(); } public function isFinal() { return $this->rfc->isFinal(); } public function getMethods() { return array_map(function ($method) { return new Method($method); }, $this->rfc->getMethods()); } public function getInterfaces() { $class = __CLASS__; return array_map(function ($interface) use ($class) { return new $class($interface); }, $this->rfc->getInterfaces()); } public function __toString() { return $this->getName(); } public function getNamespaceName() { return $this->rfc->getNamespaceName(); } public function inNamespace() { return $this->rfc->inNamespace(); } public function getShortName() { return $this->rfc->getShortName(); } public function implementsInterface($interface) { return $this->rfc->implementsInterface($interface); } public function hasInternalAncestor() { if ($this->rfc->isInternal()) { return true; } $child = $this->rfc; while ($parent = $child->getParentClass()) { if ($parent->isInternal()) { return true; } $child = $parent; } return false; } }