public function freePlaces() { $reservation = count(Reservation::filter_by_match($this->id)); $achat = count(Achat::filter_by_match($this->id)); $arena = $this->getArena(); return $arena->largeur * $arena->profondeur - $reservation - $achat; }