Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| <?php | |
| declare(strict_types=1); | |
| namespace Korobochkin\WPKit\AlmostControllers; | |
| use Symfony\Component\DependencyInjection\ContainerAwareInterface; | |
| use Symfony\Component\HttpFoundation\Request; | |
| use Symfony\Component\HttpFoundation\Response; | |
| use Symfony\Component\Validator\ConstraintViolationList; | |
| /** | |
| * Interface ActionInterface | |
| */ | |
| interface ActionInterface extends ContainerAwareInterface | |
| { | |
| /** | |
| * Returns the flag which indicate availability of this action for user. | |
| * | |
| * @return bool True if enabled for logged in users. | |
| */ | |
| public function isEnabledForLoggedIn(); | |
| /** | |
| * Sets the flag which indicate availability of this action for user. | |
| * | |
| * @param $enabledForLoggedIn bool True if enabled. | |
| * | |
| * @return $this For chain calls. | |
| */ | |
| public function setEnabledForLoggedIn($enabledForLoggedIn); | |
| /** | |
| * Returns the flag which indicate availability of this action for user. | |
| * | |
| * @return bool True if enabled for NOT logged in users. | |
| */ | |
| public function isEnabledForNotLoggedIn(); | |
| /** | |
| * Sets the flag which indicate availability of this action for user. | |
| * | |
| * @param $enabledForNotLoggedIn bool True if enabled. | |
| * | |
| * @return $this For chain calls. | |
| */ | |
| public function setEnabledForNotLoggedIn($enabledForNotLoggedIn); | |
| /** | |
| * Returns the current action name. | |
| * | |
| * @return string Name of action. | |
| */ | |
| public function getName(); | |
| /** | |
| * Sets the current action name. | |
| * | |
| * @param $name string Action name. | |
| * | |
| * @return $this For chain calls. | |
| */ | |
| public function setName($name); | |
| /** | |
| * Returns the parent stack service. | |
| * | |
| * @return StackInterface | |
| */ | |
| public function getStack(); | |
| /** | |
| * Sets the parent stack service. | |
| * | |
| * @param StackInterface $stack Parent stack. | |
| * | |
| * @return $this For chain calls. | |
| */ | |
| public function setStack(StackInterface $stack); | |
| /** | |
| * Returns a list of errors. | |
| * | |
| * @return ConstraintViolationList | |
| */ | |
| public function getViolationsList(); | |
| /** | |
| * Sets a list of errors. | |
| * | |
| * @param ConstraintViolationList $violationsList A list of errors during this action execute. | |
| * | |
| * @return $this For chain calls. | |
| */ | |
| public function setViolationsList(ConstraintViolationList $violationsList); | |
| /** | |
| * Returns HTTP Request. | |
| * | |
| * @return Request HTTP request. | |
| */ | |
| public function getRequest(); | |
| /** | |
| * Sets HTTP Request. | |
| * | |
| * @param Request $request HTTP request. | |
| * | |
| * @return $this For chain calls. | |
| */ | |
| public function setRequest(Request $request); | |
| /** | |
| * Returns HTTP Response. | |
| * | |
| * @return Response HTTP response. | |
| */ | |
| public function getResponse(); | |
| /** | |
| * Sets HTTP Response. | |
| * | |
| * @param Response $response HTTP response. | |
| * | |
| * @return $this For chain calls. | |
| */ | |
| public function setResponse(Response $response); | |
| /** | |
| * Handling HTTP requests. | |
| * | |
| * @return $this For chain calls. | |
| */ | |
| public function handleRequest(); | |
| /** | |
| * Returns a container service by its id. | |
| * | |
| * @param string $id The service id | |
| * | |
| * @return object The service | |
| */ | |
| public function get($id); | |
| } |