저자: Elliot Levin (elliotlevin@hotmail.com)
상속: implements Pinq\Parsing\IMagicResolvable
예제 #1
0
 protected function __construct($type, $returnsReference, $accessModifier, $polymorphModifier, $isStatic, $name, array $parameterExpressions, array $scopedVariableNames = null)
 {
     parent::__construct($parameterExpressions);
     $this->type = $type;
     $this->returnsReference = $returnsReference;
     $this->accessModifier = $accessModifier;
     $this->polymorphModifier = $polymorphModifier;
     $this->isStatic = $isStatic;
     $this->parameterExpressions = $parameterExpressions;
     $this->name = $name;
     $this->scopedVariableNames = $scopedVariableNames;
     $this->hash = implode('-', [$type, $returnsReference, $accessModifier, $polymorphModifier, $isStatic, $name, O\Expression::hashAll($parameterExpressions), $scopedVariableNames !== null ? implode('|', $scopedVariableNames) : '']);
 }
예제 #2
0
 public function __construct(IFunctionDeclaration $declaration, array $bodyExpressions)
 {
     parent::__construct($bodyExpressions);
     $this->declaration = $declaration;
     $this->bodyExpressions = $bodyExpressions;
 }