AbstractTrait.php 737 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\DependencyInjection\Loader\Configurator\Traits;
  11. /**
  12. * @method $this abstract(bool $abstract = true)
  13. */
  14. trait AbstractTrait
  15. {
  16. /**
  17. * Whether this definition is abstract, that means it merely serves as a
  18. * template for other definitions.
  19. *
  20. * @param bool $abstract
  21. *
  22. * @return $this
  23. */
  24. final protected function setAbstract($abstract = true)
  25. {
  26. $this->definition->setAbstract($abstract);
  27. return $this;
  28. }
  29. }