. */ /** * Doctrine_Query_Part * * @package Doctrine * @subpackage Query * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.phpdoctrine.com * @since 1.0 * @version $Revision$ * @author Konsta Vesterinen */ abstract class Doctrine_Query_Part { /** * @var Doctrine_Query $query the query object associated with this parser */ protected $query; protected $_tokenizer; /** * @param Doctrine_Query $query the query object associated with this parser */ public function __construct($query, Doctrine_Query_Tokenizer $tokenizer = null) { $this->query = $query; if ( ! $tokenizer) { $tokenizer = new Doctrine_Query_Tokenizer(); } $this->_tokenizer = $tokenizer; } /** * @return Doctrine_Query $query the query object associated with this parser */ public function getQuery() { return $this->query; } }