setCount($this->age >= self::MAX_AGE ? mt_rand(1, 5) : 1) ]; if($this->age >= self::MAX_AGE && mt_rand(0, 49) === 0){ $result[] = VanillaItems::POISONOUS_POTATO(); } return $result; } public function asItem() : Item{ return VanillaItems::POTATO(); } }