items($items) : $array; } /** @param array|null $properties */ public static function object(array $properties = null): ObjectSchema { $object = new ObjectSchema(); return $properties === null ? $object : $object->properties($properties); } /** @param Schema[] $schemas */ public static function oneOf(array $schemas): OneOfSchema { return new OneOfSchema($schemas); } /** @param Schema[] $schemas */ public static function anyOf(array $schemas): AnyOfSchema { return new AnyOfSchema($schemas); } }