public function __construct(int $id = null) { $doc_id = intval($id); parent::__construct($doc_id); }
public function __construct(int $id, $composite_id = -1, rental_property_location $location = null) { parent::__construct($id); $this->composite_id = (int) $composite_id; $this->location = $location; }
/** * Constructor. Takes an optional ID. If a composite is created from outside * the database the ID should be empty so the database can add one according to its logic. * * @param int $id the id of this composite */ public function __construct(int $id = null) { parent::__construct($id); $this->units = array(); $this->contracts = array(); }
public function __construct(int $id = null) { $adjustment_id = intval($id); parent::__construct($adjustment_id); }