/** * Constructor * * @param integer $productId Product identificator OPTIONAL * * @return void */ public function __construct($productId = null) { parent::__construct(); if (isset($productId)) { $this->productId = intval($productId); } }
/** * Constructor * * @param mixed $fieldClass Field class OPTIONAL * @param mixed $fieldName Field identifier OPTIONAL * @param mixed $fieldValue Field value OPTIONAL * * @return void */ public function __construct($fieldClass = null, $fieldName = null, $fieldValue = null) { parent::__construct(); if (isset($fieldClass)) { $this->fieldClass = $fieldClass; } if (isset($fieldName)) { $this->fieldName = $fieldName; } if (isset($fieldValue)) { $this->fieldValue = $fieldValue; } }
/** * Constructor * * @return void */ public function __construct() { parent::__construct(); $this->pairs = new \Doctrine\Common\Collections\ArrayCollection(); }
/** * Constructor * * @param boolean $nonEmpty Non-empty flag OPTIONAL * * @return void */ public function __construct($nonEmpty = false) { parent::__construct(); $this->markAsNonEmpty($nonEmpty); }
/** * Constructor * * @param string $mode Validation mode OPTIONAL * * @return void */ public function __construct($mode = self::STRICT) { parent::__construct(); $this->mode = $mode; }