* @copyright Copyright (c) 2010 Federico Cargnelutti * @license New BSD License * @version $Id: $ */ /** * @category Zf * @package Zf_Orm * @author Federico Cargnelutti * @copyright Copyright (c) 2010 Federico Cargnelutti * @license New BSD License * @version $Id: $ */ class Zf_Orm_ExpressionException extends Zf_Orm_Exception {} abstract class Zf_Orm_Expression { /** * @var string */ protected $name ; /** * @var string */ protected $format; /** * @var integer */ protected $numberOfArguments; /** * @return string * @throws Zf_Orm_ExpressionException */ public function getName() { if (!is_string($this->name)) { throw new Zf_Orm_ExpressionException('The property "name" has an invalid value type'); } return $this->name; } /** * @return string * @throws Zf_Orm_ExpressionException */ public function getFormat() { if (!is_string($this->format)) { throw new Zf_Orm_ExpressionException('The property "format" has an invalid value type'); } return $this->format; } /** * @return integer * @throws Zf_Orm_ExpressionException */ public function getNumberOfArguments() { if (!is_int($this->numberOfArguments)) { throw new Zf_Orm_ExpressionException('The property "numberOfArguments" has an invalid value type'); } return $this->numberOfArguments; } /** * @return string */ public function toString() { return $this->getName(); } }