. */ namespace Doctrine\DBAL\Schema; /** * Representation of a Database View * * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.doctrine-project.com * @since 1.0 * @version $Revision$ * @author Benjamin Eberlei */ class View extends AbstractAsset { /** * @var string */ private $_sql; public function __construct($name, $sql) { $this->_setName($name); $this->_sql = $sql; } /** * @return string */ public function getSql() { return $this->_sql; } }