Nelmio\Alice\Parameter::getValue PHP Method

getValue() public method

public getValue ( ) : mixed
return mixed
    public function getValue()
    {
        return deep_clone($this->value);
    }

Usage Example

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::getValue