public function addAction($action)
    {
        if (!$action instanceof ActionInterface) {
            return $this;
        }

        $name = $action->getIdentifier();

        if (empty($name)) {
            return $this;
        }

        $this->actions[] = $action;

        return $this;
    }
public function addAction($action)
    {
        if (!$action instanceof ActionInterface) {
            return $this;
        }

        $name = $action->getIdentifier();

        if (empty($name)) {
            return $this;
        }

        $this->actions[] = $action;

        return $this;
    }
public function addAction ( $ action ) { if ( ! $ action instanceof ActionInterface ) { return $ this ; } $ name = $ action -> getIdentifier ( ) ; if ( empty ( $ name ) ) { return $ this ; } $ this -> actions [ ] = $ action ; return $ this ; }
Execute the given callback after class instance is created.

@param ActionInterface $action

@return Descriptor
Execute the given callback after class instance is created .