예제 #1
0
 /**
  * Constructor
  *
  * @param integer $productId Product identificator OPTIONAL
  *
  * @return void
  */
 public function __construct($productId = null)
 {
     parent::__construct();
     if (isset($productId)) {
         $this->productId = intval($productId);
     }
 }
예제 #2
0
 /**
  * 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;
     }
 }
예제 #3
0
 /**
  * Constructor
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->pairs = new \Doctrine\Common\Collections\ArrayCollection();
 }
예제 #4
0
 /**
  * Constructor
  *
  * @param boolean $nonEmpty Non-empty flag OPTIONAL
  *
  * @return void
  */
 public function __construct($nonEmpty = false)
 {
     parent::__construct();
     $this->markAsNonEmpty($nonEmpty);
 }
예제 #5
0
파일: APair.php 프로젝트: kirkbauer2/kirkxc
 /**
  * Constructor
  *
  * @param string $mode Validation mode OPTIONAL
  *
  * @return void
  */
 public function __construct($mode = self::STRICT)
 {
     parent::__construct();
     $this->mode = $mode;
 }