for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace DependencyAnalyzer\DependencyGraph\FullyQualifiedStructuralElementName;
use DependencyAnalyzer\DependencyGraph\FullyQualifiedStructuralElementName;
class Method extends Base
{
public function getType(): string
return FullyQualifiedStructuralElementName::TYPE_METHOD;
}
public function include(Base $that): bool
return $this->isSame($that);
public function isMethod(): bool
return true;
public function getFullyQualifiedNamespaceNameAsArray(): array
$names = $this->getFullyQualifiedClassNameAsArray();
array_pop($names);
return $names;
public function getFullyQualifiedClassNameAsArray(): ?array
list($fqcn, $method) = explode('::', $this->toString(), 2);
return explode('\\', substr($fqcn, 1));