public function getData ($key)
    {
        if (!array_key_exists($key, $this->data))
        {
            throw new \InvalidArgumentException(sprintf("Can't find gluggi data with key '%s'.", $key));
        }

        return $this->data[$key];
    }
public function getData ($key)
    {
        if (!array_key_exists($key, $this->data))
        {
            throw new \InvalidArgumentException(sprintf("Can't find gluggi data with key '%s'.", $key));
        }

        return $this->data[$key];
    }
public function getData ( $ key ) { if ( ! array_key_exists ( $ key , $ this -> data ) ) { throw new \ InvalidArgumentException ( sprintf ( "Can't find gluggi data with key '%s'." , $ key ) ) ; } return $ this -> data [ $ key ] ; }
Returns the user defined data

@param string|int $key

@return mixed
Returns the user defined data