id; } private static function ensureIsValid(int $id) { if ($id <= 0) { throw new InvalidArgumentException('Invalid PostId given'); } } }