├── .github ├── dependabot.yml └── workflows │ └── php.yml ├── .gitignore ├── .s2c.yaml ├── .travis.yml ├── LICENSE ├── README.md ├── cmd ├── s2c └── s2c.php ├── composer.json ├── examples ├── README.md ├── advanced │ ├── advanced-schema.yaml │ └── generated │ │ ├── User.php │ │ ├── UserAddress.php │ │ ├── UserBilling.php │ │ ├── UserHobbiesItem.php │ │ ├── UserPaymentAlternative1.php │ │ └── UserPaymentAlternative2.php └── basic │ ├── basic-example.yaml │ └── generated │ ├── User.php │ └── UserLocation.php ├── phpstan.neon ├── phpunit.xml ├── psalm.xml ├── src ├── Codegen │ └── PropertyGenerator.php ├── Command │ ├── GenerateCommand.php │ └── GenerateSpecCommand.php ├── Generator │ ├── Generator.php │ ├── GeneratorException.php │ ├── GeneratorHookRunner.php │ ├── GeneratorRequest.php │ ├── Hook │ │ ├── AddInterfaceHook.php │ │ ├── AddMethodHook.php │ │ ├── AddPropertyHook.php │ │ ├── ClassCreatedHook.php │ │ ├── EnumCreatedHook.php │ │ └── FileCreatedHook.php │ ├── MatchGenerator.php │ ├── NamespaceInferrer.php │ ├── Property │ │ ├── AbstractProperty.php │ │ ├── BooleanProperty.php │ │ ├── CodeFormatting.php │ │ ├── DateProperty.php │ │ ├── DefaultPropertyDecorator.php │ │ ├── IntegerProperty.php │ │ ├── IntersectProperty.php │ │ ├── MixedProperty.php │ │ ├── NestedObjectProperty.php │ │ ├── NumberProperty.php │ │ ├── ObjectArrayProperty.php │ │ ├── OptionalPropertyDecorator.php │ │ ├── PrimitiveArrayProperty.php │ │ ├── PropertyCollection.php │ │ ├── PropertyCollectionFilter.php │ │ ├── PropertyCollectionFilterFactory.php │ │ ├── PropertyInterface.php │ │ ├── ReferenceArrayProperty.php │ │ ├── ReferenceProperty.php │ │ ├── StringEnumProperty.php │ │ ├── StringProperty.php │ │ ├── TypeConvert.php │ │ └── UnionProperty.php │ ├── PropertyBuilder.php │ ├── PropertyQuery.php │ ├── ReferenceLookup.php │ ├── ReferencedType.php │ ├── ReferencedTypeClass.php │ ├── ReferencedTypeEnum.php │ ├── ReferencedTypeUnknown.php │ ├── SchemaToClass.php │ ├── SchemaToClassFactory.php │ └── SchemaToEnum.php ├── Loader │ ├── LoadingException.php │ └── SchemaLoader.php ├── Spec │ ├── Spec.yaml │ ├── Specification.php │ ├── SpecificationFilesItem.php │ ├── SpecificationOptions.php │ ├── SpecificationOptionsTargetPHPVersionAlternative1.php │ ├── SpecificationTargetPHPVersionAlternative1.php │ └── ValidatedSpecificationFilesItem.php ├── Util │ └── StringUtils.php └── Writer │ ├── DebugWriter.php │ ├── FileWriter.php │ └── WriterInterface.php └── tests ├── Example └── CustomerTest.php ├── Generator ├── Fixtures │ ├── AdditionalProps │ │ ├── Output │ │ │ └── Foo.php │ │ └── schema.yaml │ ├── AllOfRef │ │ ├── Output │ │ │ └── Foo.php │ │ └── schema.yaml │ ├── Basic │ │ ├── Output │ │ │ └── Foo.php │ │ └── schema.yaml │ ├── DefaultValue │ │ ├── Output │ │ │ └── Foo.php │ │ └── schema.yaml │ ├── DefaultValueAsOptional │ │ ├── Output │ │ │ └── Foo.php │ │ ├── options.yaml │ │ └── schema.yaml │ ├── DuplicateWithDifferentCasing │ │ ├── Output │ │ │ └── Foo.php │ │ └── schema.yaml │ ├── Enum │ │ ├── Output │ │ │ └── Foo.php │ │ └── schema.yaml │ ├── EnumConsistent │ │ ├── Output │ │ │ └── Foo.php │ │ └── schema.yaml │ ├── JsonFile │ │ ├── Output │ │ │ └── Foo.php │ │ └── schema.json │ ├── RefList │ │ ├── Output │ │ │ └── Foo.php │ │ └── schema.yaml │ ├── ReservedNames │ │ ├── Output │ │ │ └── Foo.php │ │ └── schema.yaml │ ├── SpecialCharacterNames │ │ ├── Output │ │ │ └── Foo.php │ │ └── schema.yaml │ └── UnionCollapsing │ │ ├── Output │ │ └── Foo.php │ │ └── schema.yaml ├── GeneratorRequestTest.php ├── MatchGeneratorTest.php ├── Property │ ├── DatePropertyTest.php │ ├── IntegerPropertyTest.php │ ├── IntersectPropertyTest.php │ ├── MixedPropertyTest.php │ ├── NestedObjectPropertyTest.php │ ├── NumberPropertyTest.php │ ├── ObjectArrayPropertyTest.php │ ├── OptionalPropertyDecoratorTest.php │ ├── PrimitiveArrayPropertyTest.php │ ├── StringPropertyTest.php │ └── UnionPropertyTest.php └── SchemaToClassTest.php ├── Util └── StringUtilsTest.php └── example.yaml /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/php.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/.github/workflows/php.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/.gitignore -------------------------------------------------------------------------------- /.s2c.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/.s2c.yaml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/README.md -------------------------------------------------------------------------------- /cmd/s2c: -------------------------------------------------------------------------------- 1 | s2c.php -------------------------------------------------------------------------------- /cmd/s2c.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/cmd/s2c.php -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/composer.json -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/examples/README.md -------------------------------------------------------------------------------- /examples/advanced/advanced-schema.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/examples/advanced/advanced-schema.yaml -------------------------------------------------------------------------------- /examples/advanced/generated/User.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/examples/advanced/generated/User.php -------------------------------------------------------------------------------- /examples/advanced/generated/UserAddress.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/examples/advanced/generated/UserAddress.php -------------------------------------------------------------------------------- /examples/advanced/generated/UserBilling.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/examples/advanced/generated/UserBilling.php -------------------------------------------------------------------------------- /examples/advanced/generated/UserHobbiesItem.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/examples/advanced/generated/UserHobbiesItem.php -------------------------------------------------------------------------------- /examples/advanced/generated/UserPaymentAlternative1.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/examples/advanced/generated/UserPaymentAlternative1.php -------------------------------------------------------------------------------- /examples/advanced/generated/UserPaymentAlternative2.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/examples/advanced/generated/UserPaymentAlternative2.php -------------------------------------------------------------------------------- /examples/basic/basic-example.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/examples/basic/basic-example.yaml -------------------------------------------------------------------------------- /examples/basic/generated/User.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/examples/basic/generated/User.php -------------------------------------------------------------------------------- /examples/basic/generated/UserLocation.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/examples/basic/generated/UserLocation.php -------------------------------------------------------------------------------- /phpstan.neon: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/phpstan.neon -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/phpunit.xml -------------------------------------------------------------------------------- /psalm.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/psalm.xml -------------------------------------------------------------------------------- /src/Codegen/PropertyGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Codegen/PropertyGenerator.php -------------------------------------------------------------------------------- /src/Command/GenerateCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Command/GenerateCommand.php -------------------------------------------------------------------------------- /src/Command/GenerateSpecCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Command/GenerateSpecCommand.php -------------------------------------------------------------------------------- /src/Generator/Generator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Generator.php -------------------------------------------------------------------------------- /src/Generator/GeneratorException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/GeneratorException.php -------------------------------------------------------------------------------- /src/Generator/GeneratorHookRunner.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/GeneratorHookRunner.php -------------------------------------------------------------------------------- /src/Generator/GeneratorRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/GeneratorRequest.php -------------------------------------------------------------------------------- /src/Generator/Hook/AddInterfaceHook.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Hook/AddInterfaceHook.php -------------------------------------------------------------------------------- /src/Generator/Hook/AddMethodHook.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Hook/AddMethodHook.php -------------------------------------------------------------------------------- /src/Generator/Hook/AddPropertyHook.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Hook/AddPropertyHook.php -------------------------------------------------------------------------------- /src/Generator/Hook/ClassCreatedHook.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Hook/ClassCreatedHook.php -------------------------------------------------------------------------------- /src/Generator/Hook/EnumCreatedHook.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Hook/EnumCreatedHook.php -------------------------------------------------------------------------------- /src/Generator/Hook/FileCreatedHook.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Hook/FileCreatedHook.php -------------------------------------------------------------------------------- /src/Generator/MatchGenerator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/MatchGenerator.php -------------------------------------------------------------------------------- /src/Generator/NamespaceInferrer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/NamespaceInferrer.php -------------------------------------------------------------------------------- /src/Generator/Property/AbstractProperty.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Property/AbstractProperty.php -------------------------------------------------------------------------------- /src/Generator/Property/BooleanProperty.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Property/BooleanProperty.php -------------------------------------------------------------------------------- /src/Generator/Property/CodeFormatting.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Property/CodeFormatting.php -------------------------------------------------------------------------------- /src/Generator/Property/DateProperty.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Property/DateProperty.php -------------------------------------------------------------------------------- /src/Generator/Property/DefaultPropertyDecorator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Property/DefaultPropertyDecorator.php -------------------------------------------------------------------------------- /src/Generator/Property/IntegerProperty.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Property/IntegerProperty.php -------------------------------------------------------------------------------- /src/Generator/Property/IntersectProperty.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Property/IntersectProperty.php -------------------------------------------------------------------------------- /src/Generator/Property/MixedProperty.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Property/MixedProperty.php -------------------------------------------------------------------------------- /src/Generator/Property/NestedObjectProperty.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Property/NestedObjectProperty.php -------------------------------------------------------------------------------- /src/Generator/Property/NumberProperty.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Property/NumberProperty.php -------------------------------------------------------------------------------- /src/Generator/Property/ObjectArrayProperty.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Property/ObjectArrayProperty.php -------------------------------------------------------------------------------- /src/Generator/Property/OptionalPropertyDecorator.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Property/OptionalPropertyDecorator.php -------------------------------------------------------------------------------- /src/Generator/Property/PrimitiveArrayProperty.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Property/PrimitiveArrayProperty.php -------------------------------------------------------------------------------- /src/Generator/Property/PropertyCollection.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Property/PropertyCollection.php -------------------------------------------------------------------------------- /src/Generator/Property/PropertyCollectionFilter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Property/PropertyCollectionFilter.php -------------------------------------------------------------------------------- /src/Generator/Property/PropertyCollectionFilterFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Property/PropertyCollectionFilterFactory.php -------------------------------------------------------------------------------- /src/Generator/Property/PropertyInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Property/PropertyInterface.php -------------------------------------------------------------------------------- /src/Generator/Property/ReferenceArrayProperty.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Property/ReferenceArrayProperty.php -------------------------------------------------------------------------------- /src/Generator/Property/ReferenceProperty.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Property/ReferenceProperty.php -------------------------------------------------------------------------------- /src/Generator/Property/StringEnumProperty.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Property/StringEnumProperty.php -------------------------------------------------------------------------------- /src/Generator/Property/StringProperty.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Property/StringProperty.php -------------------------------------------------------------------------------- /src/Generator/Property/TypeConvert.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Property/TypeConvert.php -------------------------------------------------------------------------------- /src/Generator/Property/UnionProperty.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/Property/UnionProperty.php -------------------------------------------------------------------------------- /src/Generator/PropertyBuilder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/PropertyBuilder.php -------------------------------------------------------------------------------- /src/Generator/PropertyQuery.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/PropertyQuery.php -------------------------------------------------------------------------------- /src/Generator/ReferenceLookup.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/ReferenceLookup.php -------------------------------------------------------------------------------- /src/Generator/ReferencedType.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/ReferencedType.php -------------------------------------------------------------------------------- /src/Generator/ReferencedTypeClass.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/ReferencedTypeClass.php -------------------------------------------------------------------------------- /src/Generator/ReferencedTypeEnum.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/ReferencedTypeEnum.php -------------------------------------------------------------------------------- /src/Generator/ReferencedTypeUnknown.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/ReferencedTypeUnknown.php -------------------------------------------------------------------------------- /src/Generator/SchemaToClass.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/SchemaToClass.php -------------------------------------------------------------------------------- /src/Generator/SchemaToClassFactory.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/SchemaToClassFactory.php -------------------------------------------------------------------------------- /src/Generator/SchemaToEnum.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Generator/SchemaToEnum.php -------------------------------------------------------------------------------- /src/Loader/LoadingException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Loader/LoadingException.php -------------------------------------------------------------------------------- /src/Loader/SchemaLoader.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Loader/SchemaLoader.php -------------------------------------------------------------------------------- /src/Spec/Spec.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Spec/Spec.yaml -------------------------------------------------------------------------------- /src/Spec/Specification.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Spec/Specification.php -------------------------------------------------------------------------------- /src/Spec/SpecificationFilesItem.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Spec/SpecificationFilesItem.php -------------------------------------------------------------------------------- /src/Spec/SpecificationOptions.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Spec/SpecificationOptions.php -------------------------------------------------------------------------------- /src/Spec/SpecificationOptionsTargetPHPVersionAlternative1.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Spec/SpecificationOptionsTargetPHPVersionAlternative1.php -------------------------------------------------------------------------------- /src/Spec/SpecificationTargetPHPVersionAlternative1.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Spec/SpecificationTargetPHPVersionAlternative1.php -------------------------------------------------------------------------------- /src/Spec/ValidatedSpecificationFilesItem.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Spec/ValidatedSpecificationFilesItem.php -------------------------------------------------------------------------------- /src/Util/StringUtils.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Util/StringUtils.php -------------------------------------------------------------------------------- /src/Writer/DebugWriter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Writer/DebugWriter.php -------------------------------------------------------------------------------- /src/Writer/FileWriter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Writer/FileWriter.php -------------------------------------------------------------------------------- /src/Writer/WriterInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/src/Writer/WriterInterface.php -------------------------------------------------------------------------------- /tests/Example/CustomerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Example/CustomerTest.php -------------------------------------------------------------------------------- /tests/Generator/Fixtures/AdditionalProps/Output/Foo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/AdditionalProps/Output/Foo.php -------------------------------------------------------------------------------- /tests/Generator/Fixtures/AdditionalProps/schema.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/AdditionalProps/schema.yaml -------------------------------------------------------------------------------- /tests/Generator/Fixtures/AllOfRef/Output/Foo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/AllOfRef/Output/Foo.php -------------------------------------------------------------------------------- /tests/Generator/Fixtures/AllOfRef/schema.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/AllOfRef/schema.yaml -------------------------------------------------------------------------------- /tests/Generator/Fixtures/Basic/Output/Foo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/Basic/Output/Foo.php -------------------------------------------------------------------------------- /tests/Generator/Fixtures/Basic/schema.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/Basic/schema.yaml -------------------------------------------------------------------------------- /tests/Generator/Fixtures/DefaultValue/Output/Foo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/DefaultValue/Output/Foo.php -------------------------------------------------------------------------------- /tests/Generator/Fixtures/DefaultValue/schema.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/DefaultValue/schema.yaml -------------------------------------------------------------------------------- /tests/Generator/Fixtures/DefaultValueAsOptional/Output/Foo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/DefaultValueAsOptional/Output/Foo.php -------------------------------------------------------------------------------- /tests/Generator/Fixtures/DefaultValueAsOptional/options.yaml: -------------------------------------------------------------------------------- 1 | treatValuesWithDefaultAsOptional: true -------------------------------------------------------------------------------- /tests/Generator/Fixtures/DefaultValueAsOptional/schema.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/DefaultValueAsOptional/schema.yaml -------------------------------------------------------------------------------- /tests/Generator/Fixtures/DuplicateWithDifferentCasing/Output/Foo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/DuplicateWithDifferentCasing/Output/Foo.php -------------------------------------------------------------------------------- /tests/Generator/Fixtures/DuplicateWithDifferentCasing/schema.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/DuplicateWithDifferentCasing/schema.yaml -------------------------------------------------------------------------------- /tests/Generator/Fixtures/Enum/Output/Foo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/Enum/Output/Foo.php -------------------------------------------------------------------------------- /tests/Generator/Fixtures/Enum/schema.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/Enum/schema.yaml -------------------------------------------------------------------------------- /tests/Generator/Fixtures/EnumConsistent/Output/Foo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/EnumConsistent/Output/Foo.php -------------------------------------------------------------------------------- /tests/Generator/Fixtures/EnumConsistent/schema.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/EnumConsistent/schema.yaml -------------------------------------------------------------------------------- /tests/Generator/Fixtures/JsonFile/Output/Foo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/JsonFile/Output/Foo.php -------------------------------------------------------------------------------- /tests/Generator/Fixtures/JsonFile/schema.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/JsonFile/schema.json -------------------------------------------------------------------------------- /tests/Generator/Fixtures/RefList/Output/Foo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/RefList/Output/Foo.php -------------------------------------------------------------------------------- /tests/Generator/Fixtures/RefList/schema.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/RefList/schema.yaml -------------------------------------------------------------------------------- /tests/Generator/Fixtures/ReservedNames/Output/Foo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/ReservedNames/Output/Foo.php -------------------------------------------------------------------------------- /tests/Generator/Fixtures/ReservedNames/schema.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/ReservedNames/schema.yaml -------------------------------------------------------------------------------- /tests/Generator/Fixtures/SpecialCharacterNames/Output/Foo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/SpecialCharacterNames/Output/Foo.php -------------------------------------------------------------------------------- /tests/Generator/Fixtures/SpecialCharacterNames/schema.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/SpecialCharacterNames/schema.yaml -------------------------------------------------------------------------------- /tests/Generator/Fixtures/UnionCollapsing/Output/Foo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/UnionCollapsing/Output/Foo.php -------------------------------------------------------------------------------- /tests/Generator/Fixtures/UnionCollapsing/schema.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Fixtures/UnionCollapsing/schema.yaml -------------------------------------------------------------------------------- /tests/Generator/GeneratorRequestTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/GeneratorRequestTest.php -------------------------------------------------------------------------------- /tests/Generator/MatchGeneratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/MatchGeneratorTest.php -------------------------------------------------------------------------------- /tests/Generator/Property/DatePropertyTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Property/DatePropertyTest.php -------------------------------------------------------------------------------- /tests/Generator/Property/IntegerPropertyTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Property/IntegerPropertyTest.php -------------------------------------------------------------------------------- /tests/Generator/Property/IntersectPropertyTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Property/IntersectPropertyTest.php -------------------------------------------------------------------------------- /tests/Generator/Property/MixedPropertyTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Property/MixedPropertyTest.php -------------------------------------------------------------------------------- /tests/Generator/Property/NestedObjectPropertyTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Property/NestedObjectPropertyTest.php -------------------------------------------------------------------------------- /tests/Generator/Property/NumberPropertyTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Property/NumberPropertyTest.php -------------------------------------------------------------------------------- /tests/Generator/Property/ObjectArrayPropertyTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Property/ObjectArrayPropertyTest.php -------------------------------------------------------------------------------- /tests/Generator/Property/OptionalPropertyDecoratorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Property/OptionalPropertyDecoratorTest.php -------------------------------------------------------------------------------- /tests/Generator/Property/PrimitiveArrayPropertyTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Property/PrimitiveArrayPropertyTest.php -------------------------------------------------------------------------------- /tests/Generator/Property/StringPropertyTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Property/StringPropertyTest.php -------------------------------------------------------------------------------- /tests/Generator/Property/UnionPropertyTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/Property/UnionPropertyTest.php -------------------------------------------------------------------------------- /tests/Generator/SchemaToClassTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Generator/SchemaToClassTest.php -------------------------------------------------------------------------------- /tests/Util/StringUtilsTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/Util/StringUtilsTest.php -------------------------------------------------------------------------------- /tests/example.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martin-helmich/php-schema2class/HEAD/tests/example.yaml --------------------------------------------------------------------------------