mirror of
https://github.com/zoe-may/TDoG-Skin.git
synced 2024-11-24 22:02:22 +08:00
31 lines
457 B
PHP
31 lines
457 B
PHP
|
<?php
|
||
|
|
||
|
namespace Doctrine\DBAL\Schema;
|
||
|
|
||
|
/**
|
||
|
* Representation of a Database View.
|
||
|
*/
|
||
|
class View extends AbstractAsset
|
||
|
{
|
||
|
/** @var string */
|
||
|
private $sql;
|
||
|
|
||
|
/**
|
||
|
* @param string $name
|
||
|
* @param string $sql
|
||
|
*/
|
||
|
public function __construct($name, $sql)
|
||
|
{
|
||
|
$this->_setName($name);
|
||
|
$this->sql = $sql;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @return string
|
||
|
*/
|
||
|
public function getSql()
|
||
|
{
|
||
|
return $this->sql;
|
||
|
}
|
||
|
}
|