Exemplo n.º 1
0
 /**
  * @param Method|Property                $member
  * @param Stmt\ClassMethod|Stmt\Property $node
  * @param ClassLike                      $class  Class member is defined in.
  *
  * @return 
  */
 protected function processMember($member, Node $node, ClassLike $class)
 {
     $member->setAccessibility($node->isPrivate() ? ClassLike::M_PRIVATE : ($node->isProtected() ? ClassLike::M_PROTECTED : ClassLike::M_PUBLIC));
     $member->setStatic($node->isStatic());
     $member->setClass($class);
 }
Exemplo n.º 2
0
 /**
  * @param Property[] $properties
  * @param Property   $property
  */
 protected function mergeProperty(array &$properties, $property)
 {
     $properties[$property->getName()] = $property;
 }