public function getData($action, $key)
    {
        if (!is_string($action) || empty($action)) {
            throw new \InvalidArgumentException('The action name is invalid');
        }

        if (!is_string($key) || empty($key)) {
            throw new \InvalidArgumentException('The data key name is invalid');
        }

        return $this->data[$action][$key];
    }
public function getData($action, $key)
    {
        if (!is_string($action) || empty($action)) {
            throw new \InvalidArgumentException('The action name is invalid');
        }

        if (!is_string($key) || empty($key)) {
            throw new \InvalidArgumentException('The data key name is invalid');
        }

        return $this->data[$action][$key];
    }
public function getData ( $ action , $ key ) { if ( ! is_string ( $ action ) || empty ( $ action ) ) { throw new \ InvalidArgumentException ( 'The action name is invalid' ) ; } if ( ! is_string ( $ key ) || empty ( $ key ) ) { throw new \ InvalidArgumentException ( 'The data key name is invalid' ) ; } return $ this -> data [ $ action ] [ $ key ] ; }
Gets the value of the given data key.

@param string $action The event action
@param string $key The data key name
@return mixed
@throws \InvalidArgumentException if the action name or data key name is invalid.
Gets the value of the given data key .