Guest User

Untitled

a guest
Feb 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. <?php
  2.  
  3. namespace console\controllers;
  4.  
  5. use console\controllers\cronActions\promoLifeBiglion\FetchPosts;
  6.  
  7. class PromoLifeBiglionController extends Controller
  8. {
  9. /**
  10. * Хештег по которому осуществляется поиск
  11. * @var string
  12. */
  13. public $hashTag = '#lifeBiglion';
  14.  
  15. /**
  16. * Перечень социальных сетей для работы
  17. * @var array
  18. */
  19. public $socialNetworkIds = [];
  20.  
  21. /**
  22. * @inheritdoc
  23. */
  24. public function options($actionId)
  25. {
  26. return [
  27. 'hashTag',
  28. 'socialNetworkIds',
  29. ];
  30. }
  31.  
  32. /**
  33. * @inheritdoc
  34. */
  35. public function optionAliases()
  36. {
  37. return [
  38. 't' => 'hashTag',
  39. 'n' => 'socialNetworkIds',
  40. ];
  41. }
  42.  
  43. /**
  44. * @inheritdoc
  45. */
  46. protected function cronActions()
  47. {
  48. return [
  49. 'fetch-posts' => FetchPosts::class,
  50. ];
  51. }
  52. }
Add Comment
Please, Sign In to add comment