protected function __construct($tableName, $id) { $this->table = DatabaseTable::getTableWithName($tableName); $this->id = $id; }