暂无描述

ContainerAwareInterface.php 985B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php declare(strict_types=1);
  2. namespace Automattic\WooCommerce\Vendor\League\Container;
  3. use Psr\Container\ContainerInterface;
  4. interface ContainerAwareInterface
  5. {
  6. /**
  7. * Set a container
  8. *
  9. * @param ContainerInterface $container
  10. *
  11. * @return self
  12. */
  13. public function setContainer(ContainerInterface $container) : self;
  14. /**
  15. * Get the container
  16. *
  17. * @return ContainerInterface
  18. */
  19. public function getContainer() : ContainerInterface;
  20. /**
  21. * Set a container. This will be removed in favour of setContainer receiving Container in next major release.
  22. *
  23. * @param Container $container
  24. *
  25. * @return self
  26. */
  27. public function setLeagueContainer(Container $container) : self;
  28. /**
  29. * Get the container. This will be removed in favour of getContainer returning Container in next major release.
  30. *
  31. * @return Container
  32. */
  33. public function getLeagueContainer() : Container;
  34. }