Nelmio\Alice\Definition\Flag\MutableFlag::getObject PHP Method

getObject() public method

public getObject ( )
    public function getObject()
    {
        return $this->object;
    }

Usage Example

Beispiel #1
0
 public function testIsImmutable()
 {
     $bag = (new FlagBag(''))->withFlag($flag = new MutableFlag('foo', new \stdClass()));
     $flag->getObject()->foo = 'bar';
     $this->assertEquals((new FlagBag(''))->withFlag($flag = new MutableFlag('foo', new \stdClass())), $bag);
     $this->assertTrue(true, 'Nothing to do.');
 }