public function set(string $key, $value): Option
    {
        $option = $this->repository->find($key);

        return $option->setValue($value);
    }
public function set(string $key, $value): Option
    {
        $option = $this->repository->find($key);

        return $option->setValue($value);
    }
public function set ( string $ key , $ value ) : Option { $ option = $ this -> repository -> find ( $ key ) ; return $ option -> setValue ( $ value ) ; }
Set the value for a specific key.

@since 0.1.0

@param string $key   Option key to set the value of.
@param mixed  $value New value to set the option to.

@return Option Modified Option object.
Set the value for a specific key .