Generator.php 654 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /*
  3. * This file is part of the Sonata project.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  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 Bundle\BaseApplicationBundle\Form;
  11. use Symfony\Component\HttpKernel\Bundle\Bundle;
  12. class Generator
  13. {
  14. protected $types = array();
  15. public function setTypes($types)
  16. {
  17. $this->types = $types;
  18. }
  19. public function getTypes()
  20. {
  21. return $this->types;
  22. }
  23. public function addType($type, $definition)
  24. {
  25. $this->types[$type] = $definition;
  26. }
  27. }