private grabAttribsBeforePropertyToken ( |
||
$tokens | Tokens collection | |
$index | integer | token index |
return | array | map of grabbed attributes, key is attribute name and value is array of index and clone of Token |
private function grabAttribsBeforePropertyToken(Tokens $tokens, $index)
{
static $tokenAttribsMap = array(T_VAR => 'var', T_PRIVATE => 'visibility', T_PROTECTED => 'visibility', T_PUBLIC => 'visibility', T_STATIC => 'static');
return $this->grabAttribsBeforeToken($tokens, $index, $tokenAttribsMap, array('visibility' => array('index' => null, 'token' => new Token(array(T_PUBLIC, 'public'))), 'static' => null));
}