Skip to content

Releases: oqq/php-file-generator

0.9.0

Choose a tag to compare

@oqq oqq released this 26 May 11:02
Add fakerType support for ValueObjectSpecification and update type ha…

0.8.0 Eighth Release

Choose a tag to compare

@oqq oqq released this 28 Aug 09:49
Add support for union types in type system

Introduce `UnionType` to allow combining multiple types into a union. Implement corresponding `union` method in `TypeBuilder` to facilitate creating these types. Add unit test to verify the functionality.

0.7.0 Seventh Release

Choose a tag to compare

@oqq oqq released this 21 Aug 11:35
Remove redundant method removal logic

The `__invoke` method removal was unnecessary and has been eliminated. This change helps streamline the `createInvokeMethod` function, ensuring it does not attempt to remove a method if none of its specifications are provided.

0.6.0 Sixth Release

Choose a tag to compare

@oqq oqq released this 21 Aug 11:30
Update method creation to check existence before adding

Previously, a new `__invoke` method was always added without checking if it already existed. Now, the code first checks if the `__invoke` method is already present and retrieves it if so; otherwise, it adds a new one. This ensures that any pre-existing `__invoke` method is reused and avoids potential conflicts.

0.5.0 Fifth Release

Choose a tag to compare

@oqq oqq released this 21 Aug 11:12
Add DateTimeType handling in TypeMapBody and TypeBuilder

Expanded `TypeMapBody` to support `DateTimeType` by adding the date format. Introduced a new `dateTime` method in `TypeBuilder` that returns a `DateTimeType` instance.

0.4.0 Fourth Release

Choose a tag to compare

@oqq oqq released this 21 Aug 09:34
Add support for array and DateTime types

Introduced ArrayType and DateTimeType classes and methods to support these types in type definitions. Enhanced CreateFromSpecification logic to handle these new types and improved type hinting and annotations.

0.3.0 Third Release

Choose a tag to compare

@oqq oqq released this 23 Jul 08:40
Update type handling and introduce DefaultValue and FixedValue types

Modified type handling flow to support new DefaultValue and FixedValue types. Several types and specifications were added or updated as a part of this change. Also, the DatabaseSchemaPostgresBody and TypeMapBody classes were updated to accommodate the changes and ensure compatibility with the new types. Implemented corresponding modifications in the CreateValueObject class. The change also improves optional type handling and updates some dependencies.

0.2.0 Second Release

Choose a tag to compare

@oqq oqq released this 28 May 11:32
Refactor code to handle type constants and parameters

This commit contains several changes centered around better handling of type constants and parameters. It introduces 'TypeWithValue' and 'ClassStringType' to handle constants with types. It also modifies 'PostProcessor' and adjusts the type hint and annotation handling. This improves type safety and makes the code easier to manage and understand.

0.1.0 First Release

Choose a tag to compare

@oqq oqq released this 23 May 09:22
Add classes and methods for PHP file generation

This commit includes the creation of several new PHP files for the `PhpFileGenerator` library. It includes classes for generating files to handle class specifications, methods and their bodies, and including type specifications from a template. It also includes a `FileStorage` interface to work with local file storage. The added tests ensure that these new types and specifications work as expected.