FactoryDummy.php 746 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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\Tests\Fixtures;
  11. class FactoryDummy extends FactoryParent
  12. {
  13. public static function createFactory(): FactoryDummy
  14. {
  15. }
  16. public function create(): \stdClass
  17. {
  18. }
  19. // Not supported by hhvm
  20. public function createBuiltin(): int
  21. {
  22. }
  23. public static function createSelf(): self
  24. {
  25. }
  26. public static function createParent(): parent
  27. {
  28. }
  29. }
  30. class FactoryParent
  31. {
  32. }
  33. function factoryFunction(): FactoryDummy
  34. {
  35. }