public function get(string $value)
    {
        if (!$this->has($value)) {
            throw new \InvalidArgumentException(\sprintf(
                'Value %s is not a valid key, expecting one of %s',
                $value,
                \implode(', ', \array_keys($this->values))
            ));
        }

        return $this->values[$value];
    }
public function get(string $value)
    {
        if (!$this->has($value)) {
            throw new \InvalidArgumentException(\sprintf(
                'Value %s is not a valid key, expecting one of %s',
                $value,
                \implode(', ', \array_keys($this->values))
            ));
        }

        return $this->values[$value];
    }
public function get ( string $ value ) { if ( ! $ this -> has ( $ value ) ) { throw new \ InvalidArgumentException ( \ sprintf ( 'Value %s is not a valid key, expecting one of %s' , $ value , \ implode ( ', ' , \ array_keys ( $ this -> values ) ) ) ) ; } return $ this -> values [ $ value ] ; }
Returns a single value.

@param string $value

@throws \InvalidArgumentException

@return mixed
Returns a single value .