View.php 457 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace Doctrine\DBAL\Schema;
  3. /**
  4. * Representation of a Database View.
  5. */
  6. class View extends AbstractAsset
  7. {
  8. /** @var string */
  9. private $sql;
  10. /**
  11. * @param string $name
  12. * @param string $sql
  13. */
  14. public function __construct($name, $sql)
  15. {
  16. $this->_setName($name);
  17. $this->sql = $sql;
  18. }
  19. /**
  20. * @return string
  21. */
  22. public function getSql()
  23. {
  24. return $this->sql;
  25. }
  26. }