PHPSA\CompiledExpression::isTypeKnown PHP Method

isTypeKnown() public method

public isTypeKnown ( ) : boolean
return boolean
    public function isTypeKnown()
    {
        return $this->type !== self::UNKNOWN;
    }

Usage Example

Example #1
0
 public function testIsTypeKnownWithKnownType()
 {
     $compiledExpression = new CompiledExpression(CompiledExpression::BOOLEAN);
     parent::assertTrue($compiledExpression->isTypeKnown());
 }