AbstractDataCollector.php 750 B

1234567891011121314151617181920212223242526272829303132333435363738
  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\Bundle\FrameworkBundle\DataCollector;
  11. /**
  12. * @author Laurent VOULLEMIER <laurent.voullemier@gmail.com>
  13. */
  14. abstract class AbstractDataCollector implements TemplateAwareDataCollectorInterface
  15. {
  16. /**
  17. * @var array
  18. */
  19. protected $data = [];
  20. public function getName(): string
  21. {
  22. return static::class;
  23. }
  24. public function reset(): void
  25. {
  26. $this->data = [];
  27. }
  28. public static function getTemplate(): ?string
  29. {
  30. return null;
  31. }
  32. }