Nelmio\Alice\Definition\FlagBag::getKey PHP Метод

getKey() публичный Метод

public getKey ( ) : string
Результат string
    public function getKey() : string
    {
        return $this->key;
    }

Usage Example

Пример #1
0
 public function __construct(FixtureInterface $fixture, FlagBag $flags)
 {
     if ($fixture->getId() !== $flags->getKey()) {
         throw InvalidArgumentExceptionFactory::createForFlagBagKeyMismatch($fixture, $flags);
     }
     $this->fixture = clone $fixture;
     $this->flags = $flags;
 }
All Usage Examples Of Nelmio\Alice\Definition\FlagBag::getKey