| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class YoutubeDataUpdate extends Command |
||
| 14 | { |
||
| 15 | protected static $defaultName = 'vgr-core:video-youtube-data-update'; |
||
| 16 | |||
| 17 | private EntityManagerInterface $em; |
||
| 18 | private YoutubeDataHandler $youtubeDataHandler; |
||
| 19 | |||
| 20 | public function __construct(EntityManagerInterface $em, YoutubeDataHandler $youtubeDataHandler) |
||
| 21 | { |
||
| 22 | $this->em = $em; |
||
| 23 | $this->youtubeDataHandler = $youtubeDataHandler; |
||
| 24 | parent::__construct(); |
||
| 25 | } |
||
| 26 | |||
| 27 | protected function configure(): void |
||
| 28 | { |
||
| 29 | $this |
||
| 30 | ->setName('vgr-core:video-youtube-data-update') |
||
| 31 | ->setDescription('Command to update videos with youtube data'); |
||
| 32 | parent::configure(); |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param InputInterface $input |
||
| 37 | * @param OutputInterface $output |
||
| 38 | * @return int |
||
| 39 | */ |
||
| 40 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
| 49 | } |
||
| 50 | } |
||
| 51 |