__construct() public method

public __construct ( string $identifier, Pinq\Analysis\IType $parentType = null, Pinq\Analysis\ITypeOperation $indexer = null, array $castOperations = [], array $unaryOperations = [] )
$identifier string
$parentType Pinq\Analysis\IType
$indexer Pinq\Analysis\ITypeOperation
$castOperations array
$unaryOperations array
Example #1
0
 public function __construct($identifier, IType $parentType = null, $typeOfType, ITypeOperation $indexer = null, array $castOperations = [], array $unaryOperations = [])
 {
     parent::__construct($identifier, $parentType);
     $this->typeOfType = $typeOfType;
     $this->indexer = $indexer;
     $this->castOperations = $castOperations;
     $this->unaryOperations = $unaryOperations;
 }
Example #2
0
 /**
  * @param string                      $identifier
  * @param \ReflectionClass            $reflection
  * @param IType                       $parentType
  * @param IConstructor                $constructor
  * @param IMethod[]                   $methods
  * @param IField[]                    $fields
  * @param ITypeOperation[]            $unaryOperations
  * @param ITypeOperation[]            $castOperations
  * @param ITypeOperation|IMethod|null $invoker
  * @param ITypeOperation|null         $indexer
  */
 public function __construct($identifier, \ReflectionClass $reflection, IType $parentType, IConstructor $constructor = null, array $methods = [], array $fields = [], array $unaryOperations = [], array $castOperations = [], ITypeOperation $invoker = null, ITypeOperation $indexer = null)
 {
     parent::__construct($identifier, $parentType, $indexer, $unaryOperations, $castOperations);
     $this->classType = $reflection->getName();
     $this->reflection = $reflection;
     $this->invoker = $invoker;
     $this->constructor = $constructor;
     $this->methods = $methods;
     $this->fields = $fields;
     $this->invoker = $invoker;
 }
Example #3
0
 public function __construct($identifier, IType $parentType, array $composedTypes)
 {
     parent::__construct($identifier, $parentType);
     $this->composedTypes = $composedTypes;
 }