1 | <?php |
||
23 | class AuthenticationCommand extends Command |
||
24 | { |
||
25 | /** @var TwitterApiGateway */ |
||
26 | private $adapter; |
||
27 | |||
28 | /** |
||
29 | * AuthenticationCommand constructor. |
||
30 | * |
||
31 | * @param TwitterApiGateway $adapter |
||
32 | * |
||
33 | * @throws LogicException |
||
34 | */ |
||
35 | public function __construct(TwitterApiGateway $adapter, $name = null) |
||
41 | |||
42 | /** |
||
43 | * Configures the command |
||
44 | */ |
||
45 | protected function configure() |
||
49 | |||
50 | /** |
||
51 | * Code executed when command invoked |
||
52 | * |
||
53 | * @param InputInterface $input |
||
54 | * @param OutputInterface $output |
||
55 | * |
||
56 | * @return void |
||
57 | * |
||
58 | * @throws RuntimeException |
||
59 | * @throws LogicException |
||
60 | * @throws InvalidArgumentException |
||
61 | * @throws TwitterException |
||
62 | */ |
||
63 | protected function execute(InputInterface $input, OutputInterface $output) |
||
80 | } |
||
81 |