get( $daoObjectId->id ) ) { $daoObjectId->id++; } parent::add( $daoObjectId ); } public function get( int $id ) : ?daoObjectId { $found=null; foreach( $this->elements as $daoObjectId ) { if ( $id == $daoObjectId->id ) { $found=$daoObjectId; break; } } return $found; } } ?>