12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <?php
- namespace Doctrine\ORM\Query\Expr;
- class From
- {
-
- private $_from;
-
- private $_alias;
-
- private $_indexBy;
-
- public function __construct($from, $alias, $indexBy = null)
- {
- $this->_from = $from;
- $this->_alias = $alias;
- $this->_indexBy = $indexBy;
- }
-
- public function getFrom()
- {
- return $this->_from;
- }
-
- public function getAlias()
- {
- return $this->_alias;
- }
-
- public function __toString()
- {
- return $this->_from . ' ' . $this->_alias .
- ($this->_indexBy ? ' INDEX BY ' . $this->_indexBy : '');
- }
- }
|