public function setNeededAction($neededAction)
    {
        if (!in_array($neededAction, static::$allowedNeededActions))
        {
            throw new RuntimeException("Unknown needed action: '{$neededAction}'");
        }

        $this->neededAction = $neededAction;

        return $this;
    }
public function setNeededAction($neededAction)
    {
        if (!in_array($neededAction, static::$allowedNeededActions))
        {
            throw new RuntimeException("Unknown needed action: '{$neededAction}'");
        }

        $this->neededAction = $neededAction;

        return $this;
    }
public function setNeededAction ( $ neededAction ) { if ( ! in_array ( $ neededAction , static :: $ allowedNeededActions ) ) { throw new RuntimeException ( "Unknown needed action: '{$neededAction}'" ) ; } $ this -> neededAction = $ neededAction ; return $ this ; }
Set action needed after API method request ended

@param       string      $neededAction           Action needed after API method request ended

@return      self
Set action needed after API method request ended