Action.php 772 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * This file is part of the ForkBB <https://github.com/forkbb>.
  4. *
  5. * @copyright (c) Visman <mio.visman@yandex.ru, https://github.com/MioVisman>
  6. * @license The MIT License (MIT)
  7. */
  8. declare(strict_types=1);
  9. namespace ForkBB\Models;
  10. use ForkBB\Core\Container;
  11. use ForkBB\Models\Manager;
  12. class Action
  13. {
  14. /**
  15. * Контейнер
  16. * @var Container
  17. */
  18. protected $c;
  19. /**
  20. * Модель
  21. * @var Manager
  22. */
  23. protected $manager;
  24. public function __construct(Container $container)
  25. {
  26. $this->c = $container;
  27. }
  28. /**
  29. * Объявление менеджера
  30. */
  31. public function setManager(Manager $manager): Action
  32. {
  33. $this->manager = $manager;
  34. return $this;
  35. }
  36. }