Nelmio\Alice\ObjectInterface::getId PHP Method

getId() public method

public getId ( ) : string
return string
    public function getId() : string;

Usage Example

Example #1
0
 /**
  * Creates a new instance which will no longer contain the given object.
  *
  * @param FixtureInterface|ObjectInterface $objectOrFixture
  *
  * @return self
  */
 public function without($objectOrFixture) : self
 {
     $clone = clone $this;
     unset($clone->objects[$objectOrFixture->getId()]);
     unset($clone->array[$objectOrFixture->getId()]);
     return $clone;
 }
All Usage Examples Of Nelmio\Alice\ObjectInterface::getId
ObjectInterface