Nelmio\Alice\Generator\Resolver\Value\Chainable\PhpFunctionCallValueResolver::canResolve PHP Method

canResolve() public method

public canResolve ( Nelmio\Alice\Definition\ValueInterface $value ) : boolean
$value Nelmio\Alice\Definition\ValueInterface
return boolean
    public function canResolve(ValueInterface $value) : bool
    {
        return $value instanceof FunctionCallValue;
    }

Usage Example

 public function testCanResolvePropertyReferenceValues()
 {
     $resolver = new PhpFunctionCallValueResolver([], new FakeValueResolver());
     $this->assertTrue($resolver->canResolve(new FunctionCallValue('')));
     $this->assertFalse($resolver->canResolve(new FakeValue()));
 }
PhpFunctionCallValueResolver