Nelmio\Alice\Generator\Resolver\ResolvingContext::has PHP Method

has() public method

public has ( string $key ) : boolean
$key string
return boolean
    public function has(string $key) : bool
    {
        return array_key_exists($key, $this->resolving);
    }

Usage Example

Example #1
0
 public function testMutator()
 {
     $context = new ResolvingContext();
     $this->assertFalse($context->has('foo'));
     $context->add('foo');
     $this->assertTrue($context->has('foo'));
 }