提交代码
This commit is contained in:
30
vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/View.php
vendored
Normal file
30
vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/View.php
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user