Nelmio\Alice\Parameter::getKey PHP Метод

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

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

Usage Example

Пример #1
0
 /**
  * Returns a new instance which will include the passed parameter. If a parameter with that key already exist, it
  * WILL NOT be overridden.
  *
  * @param Parameter $parameter
  *
  * @return self
  */
 public function with(Parameter $parameter) : self
 {
     $key = $parameter->getKey();
     $clone = clone $this;
     if (false === $clone->has($key)) {
         $clone->parameters[$key] = $parameter->getValue();
     }
     return $clone;
 }
All Usage Examples Of Nelmio\Alice\Parameter::getKey