PHPSA\CompiledExpression::hasValue PHP Method

hasValue() public method

public hasValue ( ) : boolean
return boolean
    public function hasValue()
    {
        return $this->value !== null || $this->type === self::NULL;
    }

Usage Example

Example #1
0
 public function testHasValueWithANullType()
 {
     $compiledExpression = new CompiledExpression(CompiledExpression::NULL);
     parent::assertTrue($compiledExpression->hasValue());
 }