Source of file TableIdentifier.php
Size: 1,393 Bytes - Last Modified: 2014-03-12T23:21:18+01:00
/home/theseer/Downloads/ZendFramework-2.3.0/library/Zend/Db/Sql/TableIdentifier.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 | <?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace Zend\Db\Sql; /** */ class TableIdentifier { /** * @var string */ protected $table; /** * @var string */ protected $schema; /** * @param string $table * @param string $schema */ public function __construct($table, $schema = null) { $this->table = $table; $this->schema = $schema; } /** * @param string $table */ public function setTable($table) { $this->table = $table; } /** * @return string */ public function getTable() { return $this->table; } /** * @return bool */ public function hasSchema() { return ($this->schema != null); } /** * @param $schema */ public function setSchema($schema) { $this->schema = $schema; } /** * @return null|string */ public function getSchema() { return $this->schema; } public function getTableAndSchema() { return array($this->table, $this->schema); } } |