PHP 클래스 Trismegiste\Mondrian\Transform\GraphContext

Indexing the vertices by name
파일 보기 프로젝트 열기: trismegiste/mondrian 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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