public function grantWishes() { $wishesGranted = 0; foreach ($this->wishes as $wish) { $wish->grant(); ++$wishesGranted; } return $wishesGranted; }