public function __construct($id = null, $name = null, $description = null) { $this->id = $id; $this->name = $name; $this->description = $description; }
/** * Construct Class * * @param array $data An array with the data of a MovieRole */ public function __construct($data, $idPerson) { $this->_data = $data; parent::__construct($data, $idPerson); }