Pinq\Analysis\Types\Type::getConstructor PHP Method

getConstructor() public method

public getConstructor ( NewExpression $expression )
$expression Pinq\Expressions\NewExpression
    public function getConstructor(O\NewExpression $expression)
    {
        return $this->parentType->getConstructor($expression);
    }

Usage Example

Example #1
0
 public function getConstructor(O\NewExpression $expression)
 {
     if ($this->constructor !== null) {
         return $this->constructor;
     }
     return parent::getConstructor($expression);
 }