PHP Класс Trismegiste\Mondrian\Transform\GraphContext

Indexing the vertices by name
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$buildLogger
$fineTuning
$vertex

Открытые методы

Метод Описание
__construct ( array $cfg, Trismegiste\Mondrian\Transform\Logger\LoggerInterface $log ) Build the context
existsVertex ( string $type, string $key ) : boolean Returns if a vertex of the type $type with the index $key exists
findAllMethodSameName ( string $method ) : Vertex[] Find all methods with the same name whatever its class
findVertex ( string $type, string $key ) : Vertex Find a vertex by its type and name
getExcludedCall ( string $class, string $method ) : array Get the list of excluded calls for this Class::Method
indicesVertex ( string $type, string $index, Vertex $v ) Maintains a hashmap : ( type , index ) => Vertex obj
logFallbackCall ( string $class, string $method, string $called ) Log a call found by the fallback

Описание методов

__construct() публичный Метод

Build the context
public __construct ( array $cfg, Trismegiste\Mondrian\Transform\Logger\LoggerInterface $log )
$cfg array the config
$log Trismegiste\Mondrian\Transform\Logger\LoggerInterface a logger

existsVertex() публичный Метод

Returns if a vertex of the type $type with the index $key exists
public existsVertex ( string $type, string $key ) : boolean
$type string
$key string
Результат boolean

findAllMethodSameName() публичный Метод

Find all methods with the same name whatever its class
public findAllMethodSameName ( string $method ) : Vertex[]
$method string
Результат Trismegiste\Mondrian\Graph\Vertex[]

findVertex() публичный Метод

Find a vertex by its type and name
public findVertex ( string $type, string $key ) : Vertex
$type string
$key string
Результат Trismegiste\Mondrian\Graph\Vertex or null

getExcludedCall() публичный Метод

Get the list of excluded calls for this Class::Method
public getExcludedCall ( string $class, string $method ) : array
$class string
$method string
Результат array list of excluded methods "fqcn::methodName"

indicesVertex() публичный Метод

Maintains a hashmap : ( type , index ) => Vertex obj
public indicesVertex ( string $type, string $index, Vertex $v )
$type string [interface|class|method|param|impl|trait]
$index string the unique index in this type
$v Trismegiste\Mondrian\Graph\Vertex the vertex to index

logFallbackCall() публичный Метод

Log a call found by the fallback
public logFallbackCall ( string $class, string $method, string $called )
$class string
$method string
$called string

Описание свойств

$buildLogger защищенное свойство

protected $buildLogger

$fineTuning защищенное свойство

protected $fineTuning

$vertex защищенное свойство

protected $vertex