repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/EventListener/MapListener.php
src/EventListener/MapListener.php
<?php declare(strict_types=1); namespace AutoMapper\EventListener; use AutoMapper\Attribute\MapFrom; use AutoMapper\Attribute\MapTo; use AutoMapper\Exception\BadMapDefinitionException; use AutoMapper\Transformer\CallableTransformer; use AutoMapper\Transformer\ExpressionLanguageTransformer; use AutoMapper\Transformer...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/EventListener/MapperListener.php
src/EventListener/MapperListener.php
<?php declare(strict_types=1); namespace AutoMapper\EventListener; use AutoMapper\Attribute\Mapper; use AutoMapper\Event\GenerateMapperEvent; /** * @internal */ final readonly class MapperListener { public function __construct() { } public function __invoke(GenerateMapperEvent $event): void {...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/EventListener/MapToContextListener.php
src/EventListener/MapToContextListener.php
<?php declare(strict_types=1); namespace AutoMapper\EventListener; use AutoMapper\Attribute\MapToContext; use AutoMapper\Event\PropertyMetadataEvent; use AutoMapper\Extractor\ReadAccessor; use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor; use Symfony\Component\PropertyInfo\PropertyReadInfo; use Symfo...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/EventListener/MapToListener.php
src/EventListener/MapToListener.php
<?php declare(strict_types=1); namespace AutoMapper\EventListener; use AutoMapper\Attribute\MapTo; use AutoMapper\Event\GenerateMapperEvent; use AutoMapper\Event\PropertyMetadataEvent; use AutoMapper\Event\SourcePropertyMetadata; use AutoMapper\Event\TargetPropertyMetadata; use AutoMapper\Exception\BadMapDefinitionE...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/EventListener/MapProviderListener.php
src/EventListener/MapProviderListener.php
<?php declare(strict_types=1); namespace AutoMapper\EventListener; use AutoMapper\Attribute\MapProvider; use AutoMapper\Event\GenerateMapperEvent; use AutoMapper\Exception\BadMapDefinitionException; /** * @internal */ final readonly class MapProviderListener { public function __construct() { } pu...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/EventListener/MapFromListener.php
src/EventListener/MapFromListener.php
<?php declare(strict_types=1); namespace AutoMapper\EventListener; use AutoMapper\Attribute\MapFrom; use AutoMapper\Event\GenerateMapperEvent; use AutoMapper\Event\PropertyMetadataEvent; use AutoMapper\Event\SourcePropertyMetadata; use AutoMapper\Event\TargetPropertyMetadata; use AutoMapper\Exception\BadMapDefinitio...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/EventListener/Doctrine/DoctrineIdentifierListener.php
src/EventListener/Doctrine/DoctrineIdentifierListener.php
<?php declare(strict_types=1); namespace AutoMapper\EventListener\Doctrine; use AutoMapper\Event\PropertyMetadataEvent; use Doctrine\Persistence\ObjectManager; final readonly class DoctrineIdentifierListener { public function __construct( private ObjectManager $objectManager, ) { } public f...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/EventListener/Doctrine/DoctrineProviderListener.php
src/EventListener/Doctrine/DoctrineProviderListener.php
<?php declare(strict_types=1); namespace AutoMapper\EventListener\Doctrine; use AutoMapper\Event\GenerateMapperEvent; use AutoMapper\Provider\Doctrine\DoctrineProvider; use Doctrine\Persistence\ObjectManager; final readonly class DoctrineProviderListener { public function __construct( private ObjectMana...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/EventListener/ApiPlatform/JsonLdListener.php
src/EventListener/ApiPlatform/JsonLdListener.php
<?php declare(strict_types=1); namespace AutoMapper\EventListener\ApiPlatform; use ApiPlatform\Api\ResourceClassResolverInterface as LegacyResourceClassResolverInterface; use ApiPlatform\Metadata\HttpOperation; use ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface; use ApiPlatform\Meta...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/EventListener/Symfony/SerializerMaxDepthListener.php
src/EventListener/Symfony/SerializerMaxDepthListener.php
<?php declare(strict_types=1); namespace AutoMapper\EventListener\Symfony; use AutoMapper\Event\PropertyMetadataEvent; use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface; final readonly class SerializerMaxDepthListener { public function __construct( private ClassMetadataFacto...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/EventListener/Symfony/SerializerIgnoreListener.php
src/EventListener/Symfony/SerializerIgnoreListener.php
<?php declare(strict_types=1); namespace AutoMapper\EventListener\Symfony; use AutoMapper\Event\PropertyMetadataEvent; use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface; final readonly class SerializerIgnoreListener { public function __construct( private ClassMetadataFactory...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/EventListener/Symfony/SerializerGroupListener.php
src/EventListener/Symfony/SerializerGroupListener.php
<?php declare(strict_types=1); namespace AutoMapper\EventListener\Symfony; use AutoMapper\Event\PropertyMetadataEvent; use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface; final readonly class SerializerGroupListener { public function __construct( private ClassMetadataFactoryI...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/EventListener/Symfony/NameConverterListener.php
src/EventListener/Symfony/NameConverterListener.php
<?php declare(strict_types=1); namespace AutoMapper\EventListener\Symfony; use AutoMapper\Event\PropertyMetadataEvent; use Symfony\Component\Serializer\NameConverter\NameConverterInterface; final readonly class NameConverterListener { public function __construct( private NameConverterInterface $nameConv...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/EventListener/Symfony/ClassDiscriminatorListener.php
src/EventListener/Symfony/ClassDiscriminatorListener.php
<?php declare(strict_types=1); namespace AutoMapper\EventListener\Symfony; use AutoMapper\Event\GenerateMapperEvent; use AutoMapper\Event\PropertyMetadataEvent; use AutoMapper\Event\SourcePropertyMetadata; use AutoMapper\Event\TargetPropertyMetadata; use AutoMapper\Transformer\FixedValueTransformer; use Symfony\Comp...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Generator/UniqueVariableScope.php
src/Generator/UniqueVariableScope.php
<?php declare(strict_types=1); namespace AutoMapper\Generator; /** * Allows to get a unique variable name for a scope (like a method). * * @internal * * @author Joel Wurtz <jwurtz@jolicode.com> */ final class UniqueVariableScope { /** @var array<string, non-negative-int> */ private array $registry = []...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Generator/MapMethodStatementsGenerator.php
src/Generator/MapMethodStatementsGenerator.php
<?php declare(strict_types=1); namespace AutoMapper\Generator; use AutoMapper\Exception\ReadOnlyTargetException; use AutoMapper\Generator\Shared\CachedReflectionStatementsGenerator; use AutoMapper\Generator\Shared\DiscriminatorStatementsGenerator; use AutoMapper\MapperContext; use AutoMapper\Metadata\GeneratorMetada...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Generator/InjectMapperMethodStatementsGenerator.php
src/Generator/InjectMapperMethodStatementsGenerator.php
<?php declare(strict_types=1); namespace AutoMapper\Generator; use AutoMapper\Metadata\Dependency; use AutoMapper\Metadata\GeneratorMetadata; use PhpParser\Node\Arg; use PhpParser\Node\Expr; use PhpParser\Node\Scalar; use PhpParser\Node\Stmt; /** * Create the injectMapper methods for this mapper. * * This is not...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Generator/MapperGenerator.php
src/Generator/MapperGenerator.php
<?php declare(strict_types=1); namespace AutoMapper\Generator; use AutoMapper\AutoMapperRegistryInterface; use AutoMapper\Configuration; use AutoMapper\Exception\CompileException; use AutoMapper\Exception\InvalidMappingException; use AutoMapper\GeneratedMapper; use AutoMapper\Generator\Shared\CachedReflectionStateme...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Generator/IdentifierHashGenerator.php
src/Generator/IdentifierHashGenerator.php
<?php declare(strict_types=1); namespace AutoMapper\Generator; use AutoMapper\Extractor\ReadAccessor; use AutoMapper\Metadata\GeneratorMetadata; use AutoMapper\Transformer\IdentifierHashInterface; use PhpParser\Builder; use PhpParser\Node\Arg; use PhpParser\Node\Expr; use PhpParser\Node\Name; use PhpParser\Node\Para...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Generator/PropertyConditionsGenerator.php
src/Generator/PropertyConditionsGenerator.php
<?php declare(strict_types=1); namespace AutoMapper\Generator; use AutoMapper\Exception\CompileException; use AutoMapper\MapperContext; use AutoMapper\Metadata\GeneratorMetadata; use AutoMapper\Metadata\PropertyMetadata; use PhpParser\Node\Arg; use PhpParser\Node\Expr; use PhpParser\Node\Name; use PhpParser\Node\Sca...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Generator/CreateTargetStatementsGenerator.php
src/Generator/CreateTargetStatementsGenerator.php
<?php declare(strict_types=1); namespace AutoMapper\Generator; use AutoMapper\Exception\MissingConstructorArgumentsException; use AutoMapper\Generator\Shared\CachedReflectionStatementsGenerator; use AutoMapper\Generator\Shared\DiscriminatorStatementsGenerator; use AutoMapper\MapperContext; use AutoMapper\Metadata\Ge...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Generator/PropertyStatementsGenerator.php
src/Generator/PropertyStatementsGenerator.php
<?php declare(strict_types=1); namespace AutoMapper\Generator; use AutoMapper\Extractor\WriteMutator; use AutoMapper\Metadata\GeneratorMetadata; use AutoMapper\Metadata\PropertyMetadata; use AutoMapper\Transformer\AllowNullValueTransformerInterface; use AutoMapper\Transformer\AssignedByReferenceTransformerInterface;...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Generator/VariableRegistry.php
src/Generator/VariableRegistry.php
<?php declare(strict_types=1); namespace AutoMapper\Generator; use PhpParser\Node\Expr\Variable; /** * @internal */ final class VariableRegistry { private UniqueVariableScope $uniqueVariableScope; private Variable $sourceInput; private Variable $result; private Variable $hashVariable; private...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Generator/MapperConstructorGenerator.php
src/Generator/MapperConstructorGenerator.php
<?php declare(strict_types=1); namespace AutoMapper\Generator; use AutoMapper\Extractor\ReadAccessor; use AutoMapper\Generator\Shared\CachedReflectionStatementsGenerator; use AutoMapper\Metadata\GeneratorMetadata; use AutoMapper\Metadata\PropertyMetadata; use PhpParser\Node\Expr; use PhpParser\Node\Scalar; use PhpPa...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Generator/Shared/CachedReflectionStatementsGenerator.php
src/Generator/Shared/CachedReflectionStatementsGenerator.php
<?php declare(strict_types=1); namespace AutoMapper\Generator\Shared; use AutoMapper\Metadata\GeneratorMetadata; use PhpParser\Node\Arg; use PhpParser\Node\Expr; use PhpParser\Node\Name; use PhpParser\Node\Scalar; use PhpParser\Node\Stmt; /** * This class creates both "constructor arguments" and "create target" st...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Generator/Shared/ClassDiscriminatorResolver.php
src/Generator/Shared/ClassDiscriminatorResolver.php
<?php declare(strict_types=1); namespace AutoMapper\Generator\Shared; use AutoMapper\Metadata\GeneratorMetadata; use AutoMapper\Metadata\PropertyMetadata; use AutoMapper\Transformer\TransformerInterface; use Symfony\Component\Serializer\Mapping\ClassDiscriminatorMapping; use Symfony\Component\Serializer\Mapping\Clas...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/src/Generator/Shared/DiscriminatorStatementsGenerator.php
src/Generator/Shared/DiscriminatorStatementsGenerator.php
<?php declare(strict_types=1); namespace AutoMapper\Generator\Shared; use AutoMapper\Exception\CannotCreateTargetException; use AutoMapper\Metadata\GeneratorMetadata; use AutoMapper\Transformer\TransformerInterface; use PhpParser\Node\Arg; use PhpParser\Node\Expr; use PhpParser\Node\Name; use PhpParser\Node\Scalar; ...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTestCase.php
tests/AutoMapperTestCase.php
<?php declare(strict_types=1); namespace AutoMapper\Tests; use AutoMapper\AutoMapper; use PHPUnit\Framework\TestCase; /** * @author Baptiste Leduc <baptiste.leduc@gmail.com> */ abstract class AutoMapperTestCase extends TestCase { protected AutoMapper $autoMapper; protected function setUp(): void { ...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperWithCustomTransformerTest.php
tests/AutoMapperWithCustomTransformerTest.php
<?php declare(strict_types=1); namespace AutoMapper\Tests; use AutoMapper\Tests\Fixtures\Address; use AutoMapper\Tests\Fixtures\AddressDTO; use AutoMapper\Tests\Fixtures\BirthDateDateTime; use AutoMapper\Tests\Fixtures\BirthDateExploded; use AutoMapper\Tests\Fixtures\CityFoo; use AutoMapper\Tests\Fixtures\Transforme...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperMapToTest.php
tests/AutoMapperMapToTest.php
<?php declare(strict_types=1); namespace AutoMapper\Tests; use AutoMapper\Exception\BadMapDefinitionException; use AutoMapper\MapperContext; use AutoMapper\Symfony\ExpressionLanguageProvider; use AutoMapper\Tests\Fixtures\MapTo\BadMapToTransformer; use AutoMapper\Tests\Fixtures\MapTo\Bar; use AutoMapper\Tests\Fixtur...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperBuilder.php
tests/AutoMapperBuilder.php
<?php declare(strict_types=1); namespace AutoMapper\Tests; use AutoMapper\AutoMapper; use AutoMapper\Configuration; use AutoMapper\ConstructorStrategy; use AutoMapper\Symfony\ExpressionLanguageProvider; use Doctrine\Persistence\ObjectManager; use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Compone...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest.php
tests/AutoMapperTest.php
<?php declare(strict_types=1); namespace AutoMapper\Tests; use AutoMapper\AutoMapper; use AutoMapper\Configuration; use AutoMapper\ConstructorStrategy; use AutoMapper\Event\PropertyMetadataEvent; use AutoMapper\Exception\CircularReferenceException; use AutoMapper\Exception\InvalidMappingException; use AutoMapper\Exc...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
true
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/MapperContextTest.php
tests/MapperContextTest.php
<?php declare(strict_types=1); namespace AutoMapper\Tests; use AutoMapper\Exception\CircularReferenceException; use AutoMapper\Exception\InvalidArgumentException; use AutoMapper\MapperContext; use AutoMapper\Tests\Fixtures\UserDTO; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\TestCase; /** ...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Metadata/MetadataFactoryTest.php
tests/Metadata/MetadataFactoryTest.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Metadata; use AutoMapper\Configuration; use AutoMapper\Extractor\FromSourceMappingExtractor; use AutoMapper\Extractor\FromTargetMappingExtractor; use AutoMapper\Extractor\SourceTargetMappingExtractor; use AutoMapper\Generator\Shared\ClassDiscriminatorResolver...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Doctrine/DoctrineTest.php
tests/Doctrine/DoctrineTest.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Doctrine; use AutoMapper\MapperContext; use AutoMapper\Tests\AutoMapperBuilder; use AutoMapper\Tests\AutoMapperTestCase; use AutoMapper\Tests\Doctrine\Entity\Book; use AutoMapper\Tests\Doctrine\Entity\Foo; use AutoMapper\Tests\Doctrine\Entity\Review; use Auto...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Doctrine/Entity/Foo.php
tests/Doctrine/Entity/Foo.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Doctrine\Entity; use AutoMapper\Attribute\MapProvider; use Doctrine\ORM\Mapping as ORM; #[ORM\Entity] #[MapProvider(provider: false)] class Foo { #[ORM\Id] #[ORM\Column(type: 'integer')] #[ORM\GeneratedValue] public ?int $id = null; #[OR...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Doctrine/Entity/User.php
tests/Doctrine/Entity/User.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Doctrine\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; #[ORM\Entity] class User { #[ORM\Id] #[ORM\Column(type: 'integer')] #[ORM\GeneratedValue] public ?i...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Doctrine/Entity/Review.php
tests/Doctrine/Entity/Review.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Doctrine\Entity; use Doctrine\ORM\Mapping as ORM; #[ORM\Entity] class Review { #[ORM\Column(type: 'integer')] public int $rating = 0; #[ORM\ManyToOne(targetEntity: Book::class, inversedBy: 'reviews')] #[ORM\Id] public Book $book; #[...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Doctrine/Entity/Book.php
tests/Doctrine/Entity/Book.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Doctrine\Entity; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; use Doctrine\ORM\Mapping as ORM; #[ORM\Entity] class Book { #[ORM\Id] #[ORM\Column(type: 'integer')] #[ORM\GeneratedValue] public ?i...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/StdObject/map.php
tests/AutoMapperTest/StdObject/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\StdObject; use AutoMapper\Tests\AutoMapperBuilder; $user = new \stdClass(); $user->id = 1; $nestedStd = new \stdClass(); $nestedStd->id = 2; $user->nestedStd = $nestedStd; return AutoMapperBuilder::buildAutoMapper()->map($user, \stdClass::cla...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/CircularReferenceDeep/map.php
tests/AutoMapperTest/CircularReferenceDeep/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\CircularReferenceDeep; use AutoMapper\Tests\AutoMapperBuilder; class CircularBar { /** @var CircularBaz */ public $baz; } class CircularBaz { /** @var CircularFoo */ public $foo; } class CircularFoo { /** @var CircularBar...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/Issue111/map.php
tests/AutoMapperTest/Issue111/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\Issue111; use AutoMapper\Attribute\MapTo; use AutoMapper\Tests\AutoMapperBuilder; use AutoMapper\Transformer\PropertyTransformer\PropertyTransformerInterface; class FooDto { #[MapTo(target: Foo::class, transformer: ColourTransformer::class...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/MaxDepth/map.php
tests/AutoMapperTest/MaxDepth/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\MaxDepth; use AutoMapper\Tests\AutoMapperBuilder; use Symfony\Component\Serializer\Attribute\MaxDepth; class FooMaxDepth { /** * @var int */ private $id; /** * @var FooMaxDepth|null */ #[MaxDepth(2)] pr...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/Private/map.php
tests/AutoMapperTest/Private/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\Private; use AutoMapper\Tests\AutoMapperBuilder; class PrivateUserDTO { /** @var int */ private $id; /** @var string */ private $firstName; /** @var string */ private $lastName; public function getId(): int {...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/DeepPopulateWithArrayCollection/map.php
tests/AutoMapperTest/DeepPopulateWithArrayCollection/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\DeepPopulateWithArrayCollection; use AutoMapper\Tests\AutoMapperBuilder; use Doctrine\Common\Collections\ArrayCollection; class Bar { public string $bar; } class Foo { /** @var array<Bar> */ public array $bars; } class FooWithArr...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/Paramters/map.php
tests/AutoMapperTest/Paramters/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\Paramters; use AutoMapper\Tests\AutoMapperBuilder; class Paramters { /** @var array<string, string> */ private $parameters; /** * @param array<string, string> $parameters */ public function __construct(array $paramet...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/ConstructorWithRelation/map.php
tests/AutoMapperTest/ConstructorWithRelation/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\ConstructorWithRelation; use AutoMapper\MapperContext; use AutoMapper\Tests\AutoMapperBuilder; readonly class IntDto { public function __construct( public int $foo, ) { } } class UserConstructorDTOWithRelation { public...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/BuiltinClass/map.php
tests/AutoMapperTest/BuiltinClass/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\BuiltinClass; use AutoMapper\Tests\AutoMapperBuilder; class BuiltinClass { public function __construct( public \DateInterval $dateInterval, ) { } } $autoMapper = AutoMapperBuilder::buildAutoMapper(mapPrivatePropertiesAndMe...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/Issue284/map.php
tests/AutoMapperTest/Issue284/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\Issue284; use AutoMapper\Tests\AutoMapperBuilder; abstract readonly class Fruit { public function __construct( public int $weight, ) { } } final readonly class Banana extends Fruit { } return AutoMapperBuilder::buildAutoM...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/GroupOverride/map.php
tests/AutoMapperTest/GroupOverride/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\GroupOverride; use AutoMapper\Attribute\MapTo; use AutoMapper\Tests\AutoMapperBuilder; use Symfony\Component\Serializer\Attribute\Groups; use Symfony\Component\Serializer\Attribute\Ignore; class GroupOverride { #[Groups(['group1'])] #[...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/SkipNullValues/map.php
tests/AutoMapperTest/SkipNullValues/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\SkipNullValues; use AutoMapper\MapperContext; use AutoMapper\Tests\AutoMapperBuilder; class Input { /** * @var string|null */ public $name; } class Entity { /** * @var string */ private $name; public f...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/ConstructorPropertyPromoted/map.php
tests/AutoMapperTest/ConstructorPropertyPromoted/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\ConstructorPropertyPromoted; use AutoMapper\Tests\AutoMapperBuilder; class AddressDTO { /** * @var string|null */ public $city; } readonly class UserPromoted { /** * @param array<AddressDTO> $addresses */ p...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/Covariance/map.php
tests/AutoMapperTest/Covariance/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\Covariance; use AutoMapper\Attribute\MapTo; use AutoMapper\Tests\AutoMapperBuilder; class GenericB { } class GenericA { /** * @var GenericB */ #[MapTo(extractTypesFromGetter: true)] protected $b; public function get...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/Issue425/map.php
tests/AutoMapperTest/Issue425/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\Issue425; use AutoMapper\Tests\AutoMapperBuilder; $data = [1, 2, 3, 4, 5]; $foo = new Foo($data); class Foo { /** @var bigint[] */ private array $property = []; public function __construct(array $property) { $this->pr...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/DiscriminatorMapBadConfiguration/map.php
tests/AutoMapperTest/DiscriminatorMapBadConfiguration/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\DiscriminatorMapBadConfiguration; use AutoMapper\Tests\AutoMapperBuilder; use Symfony\Component\Serializer\Attribute\DiscriminatorMap; #[DiscriminatorMap('linkType', [ 'default' => DefaultLinkType::class, ])] abstract class LinkType { } c...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/DiscriminatorMapAndInterface/map.php
tests/AutoMapperTest/DiscriminatorMapAndInterface/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\DiscriminatorMapAndInterface; use AutoMapper\Tests\AutoMapperBuilder; use Symfony\Component\Serializer\Attribute\DiscriminatorMap; #[DiscriminatorMap(typeProperty: 'type', mapping: [ 'type_a' => TypeA::class, 'type_b' => TypeB::class, ...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/PrivatePropertyInConstructors/map.php
tests/AutoMapperTest/PrivatePropertyInConstructors/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\PrivatePropertyInConstructors; use AutoMapper\Tests\AutoMapperBuilder; /** * @author Nicolas PHILIPPE <nikophil@gmail.com> */ abstract class AbstractClass { public function __construct( private string $parentProp, ) { } }...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/DoctrineCollections/map.php
tests/AutoMapperTest/DoctrineCollections/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\DoctrineCollections; use AutoMapper\Tests\AutoMapperBuilder; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; class Book { public function __construct( public string $name, ) { } ...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/ConstructorWithSerializedName/map.php
tests/AutoMapperTest/ConstructorWithSerializedName/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\ConstructorWithSerializedName; use AutoMapper\Tests\AutoMapperBuilder; use Symfony\Component\Serializer\Attribute\SerializedName; final readonly class Bar { public function __construct( #[SerializedName('is_static')] public...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/Ignore/map.php
tests/AutoMapperTest/Ignore/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\Ignore; use AutoMapper\Tests\AutoMapperBuilder; use Symfony\Component\Serializer\Attribute\Ignore; class FooIgnore { /** * @var int */ #[Ignore] public $id; public function getId(): int { return $this->id...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/SymfonyUId/map.php
tests/AutoMapperTest/SymfonyUId/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\SymfonyUId; use AutoMapper\Tests\AutoMapperBuilder; use Symfony\Component\Uid\Ulid; use Symfony\Component\Uid\Uuid; class SymfonyUlidUser { /** * @var Ulid */ private $ulid; /** * @var string */ public $nam...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/UnionProperty/map.php
tests/AutoMapperTest/UnionProperty/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\UnionProperty; use AutoMapper\Tests\AutoMapperBuilder; final readonly class Bar { public function __construct( public string $bar, ) { } } final readonly class Foo { public function __construct( public string $...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/IssueParamDocBlock/map.php
tests/AutoMapperTest/IssueParamDocBlock/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\IssueParamDocBlock; use AutoMapper\Tests\AutoMapperBuilder; final readonly class map { /** * @param string[] $foo */ public function __construct( public string $bar, public array $foo, ) { } } final r...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/Issue269/map.php
tests/AutoMapperTest/Issue269/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\Issue269; use AutoMapper\Tests\AutoMapperBuilder; enum PaymentMethod: string { case First = 'First'; } class Dto { /** @var PaymentMethod[] */ public ?array $paymentMethods = null; } class Entity { /** @var PaymentMethod[] */...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/DeepPopulateMergeExisting/map.php
tests/AutoMapperTest/DeepPopulateMergeExisting/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\DeepPopulateMergeExisting; use AutoMapper\Attribute\MapFrom; use AutoMapper\Tests\AutoMapperBuilder; use Doctrine\Common\Collections\ArrayCollection; class Bar { #[MapFrom(source: 'array', identifier: true)] private int $id; publi...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/ArrayAccess/map.php
tests/AutoMapperTest/ArrayAccess/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\ArrayAccess; use AutoMapper\Attribute\Mapper; use AutoMapper\Tests\AutoMapperBuilder; class LikeArray extends \ArrayObject { } #[Mapper(source: LikeArray::class, target: LikeArray::class, allowExtraProperties: true)] class Foo { public st...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/DifferentSetterGetterType/map.php
tests/AutoMapperTest/DifferentSetterGetterType/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\DifferentSetterGetterType; use AutoMapper\Tests\AutoMapperBuilder; enum AddressType: string { case FLAT = 'flat'; case APARTMENT = 'apartment'; } class DifferentSetterGetterType { private AddressType $addressDocBlock; public ...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/ArrayNotNested/map.php
tests/AutoMapperTest/ArrayNotNested/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\ArrayNested; use AutoMapper\Tests\AutoMapperBuilder; class UserApiResource { public array $roles; // ["ROLE_USER"] } #[\AllowDynamicProperties] class UserEntity { public function setRoles(array $roles) { $this->roles = $ro...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/ObjectWithPropertyAsUnknownArray/map.php
tests/AutoMapperTest/ObjectWithPropertyAsUnknownArray/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\ObjectWithPropertyAsUnknownArray; use AutoMapper\Tests\AutoMapperBuilder; final readonly class ComponentDto { public function __construct( public string $name, ) { } } final class Page { public string $title = 'my titl...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/ArrayConsistency/map.php
tests/AutoMapperTest/ArrayConsistency/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\ArrayConsistency; use AutoMapper\MapperContext; use AutoMapper\Tests\AutoMapperBuilder; use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\Collection; class From { public array $values; } class To { publi...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/Provider/map.php
tests/AutoMapperTest/Provider/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\Provider; use AutoMapper\Attribute\MapProvider; use AutoMapper\Provider\EarlyReturn; use AutoMapper\Provider\ProviderInterface; use AutoMapper\Tests\AutoMapperBuilder; final readonly class CustomProvider implements ProviderInterface { publ...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/NoProperties/map.php
tests/AutoMapperTest/NoProperties/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\NoProperties; use AutoMapper\Tests\AutoMapperBuilder; class FooNoProperties { } $noProperties = new FooNoProperties(); return AutoMapperBuilder::buildAutoMapper()->map($noProperties, FooNoProperties::class);
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/UninitializedProperties/map.php
tests/AutoMapperTest/UninitializedProperties/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\UninitializedProperties; use AutoMapper\MapperContext; use AutoMapper\Tests\AutoMapperBuilder; class UserPatchInput { public string $lastName; public string $firstName; public ?\DateTimeImmutable $birthDate; } class User { pub...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/TargetToPopulate/map.php
tests/AutoMapperTest/TargetToPopulate/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\TargetToPopulate; use AutoMapper\Tests\AutoMapperBuilder; class VatModel { /** * @var string */ protected $countryCode; /** * @var string|null */ protected $stateCode; /** * @var float */ p...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/NoTypes/map.php
tests/AutoMapperTest/NoTypes/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\NoTypes; use AutoMapper\Tests\AutoMapperBuilder; class AddressNoTypes { public $city; } $address = new AddressNoTypes(); $address->city = 'test'; $autoMapper = AutoMapperBuilder::buildAutoMapper(classPrefix: 'NotReadable_'); return $aut...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/DiscriminatorPopulate/map.php
tests/AutoMapperTest/DiscriminatorPopulate/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\DiscriminatorPopulate; use AutoMapper\MapperContext; use AutoMapper\Tests\AutoMapperBuilder; use Symfony\Component\Serializer\Attribute\DiscriminatorMap; #[DiscriminatorMap('linkType', [ 'default' => DefaultLinkType::class, ])] abstract cl...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/AutoMapperTest/ArrayNested/map.php
tests/AutoMapperTest/ArrayNested/map.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\AutoMapperTest\ArrayNested; use AutoMapper\Tests\AutoMapperBuilder; class ClassContainer { public ?array $endpoints = null; } class TestSubTarget { public function __construct( private ?string $endpoint = null, private ?array $params...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Fixtures/Order.php
tests/Fixtures/Order.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Fixtures; use Money\Money; class Order { /** @var int */ public $id; /** @var Money */ public $price; }
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Fixtures/HasDateTimeInterfaceWithNullValue.php
tests/Fixtures/HasDateTimeInterfaceWithNullValue.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Fixtures; final class HasDateTimeInterfaceWithNullValue { public ?\DateTimeInterface $dateTime = null; public static function create(): self { return new self(); } public function getString(): ?string { return $this->...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Fixtures/UserDTONoName.php
tests/Fixtures/UserDTONoName.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Fixtures; class UserDTONoName { /** * @var int */ public $id; }
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Fixtures/Cat.php
tests/Fixtures/Cat.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Fixtures; class Cat extends Pet { }
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Fixtures/AddressType.php
tests/Fixtures/AddressType.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Fixtures; enum AddressType: string { case FLAT = 'flat'; case APARTMENT = 'apartment'; }
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Fixtures/UserDTO.php
tests/Fixtures/UserDTO.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Fixtures; class UserDTO { /** * @var int */ public $id; /** * @var string */ private $name; /** * @var int */ public $age; /** * @var int */ public $yearOfBirth; /** * @var s...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Fixtures/Address.php
tests/Fixtures/Address.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Fixtures; class Address { /** * @var string|null */ private $city; public function setCity(?string $city): void { $this->city = $city; } public static function fromDTO(AddressDTO $addressDTO): self { $ad...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Fixtures/ObjectWithDateTime.php
tests/Fixtures/ObjectWithDateTime.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Fixtures; final class ObjectWithDateTime { /** * @var \DateTimeInterface */ public $dateTime; public function __construct(\DateTimeInterface $dateTime) { $this->dateTime = $dateTime; } }
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Fixtures/PetOwnerWithConstructorArguments.php
tests/Fixtures/PetOwnerWithConstructorArguments.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Fixtures; class PetOwnerWithConstructorArguments { /** @var array<int, Pet> */ private $pets; public function __construct(array $pets) { $this->pets = $pets; } /** * @return Pet[] */ public function getPets(): a...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Fixtures/Proxy.php
tests/Fixtures/Proxy.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Fixtures; class Proxy { public string $foo = 'foo'; }
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Fixtures/Empty_.php
tests/Fixtures/Empty_.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Fixtures; class Empty_ { }
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Fixtures/Foo.php
tests/Fixtures/Foo.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Fixtures; use Symfony\Component\Serializer\Attribute\Groups; class Foo { /** * @var int */ #[Groups(['group1', 'group2', 'group3'])] private $id = 0; public function getId(): int { return $this->id; } public fu...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Fixtures/UserConstructorDTO.php
tests/Fixtures/UserConstructorDTO.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Fixtures; class UserConstructorDTO { /** * @var string */ private $id; /** * @var ?string */ private $name; /** * @var int */ private $age; /** * @var bool */ private $constructor = fal...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Fixtures/Bar.php
tests/Fixtures/Bar.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Fixtures; use Symfony\Component\Serializer\Attribute\Groups; class Bar { /** * @var int|null */ #[Groups(['group2', 'group3'])] private $id; public function getId(): ?int { return $this->id; } public function s...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Fixtures/Uninitialized.php
tests/Fixtures/Uninitialized.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Fixtures; class Uninitialized { public string $foo; public string $bar = 'bar'; }
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Fixtures/IntDTOWithMapper.php
tests/Fixtures/IntDTOWithMapper.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Fixtures; use AutoMapper\Attribute\Mapper; #[Mapper(strictTypes: true)] readonly class IntDTOWithMapper { public function __construct( public int $foo, ) { } }
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Fixtures/WrongParameters.php
tests/Fixtures/WrongParameters.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Fixtures; class WrongParameters { /** @var string[]|null */ private $parameters; /** * @param string[]|null $parameters */ public function __construct(array $parameters) { $this->setParameters($parameters); } /*...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Fixtures/ClassWithNullablePropertyInConstructor.php
tests/Fixtures/ClassWithNullablePropertyInConstructor.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Fixtures; readonly class ClassWithNullablePropertyInConstructor { public function __construct( public int $foo, public ?int $bar = null, ) { } }
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Fixtures/GroupOverride.php
tests/Fixtures/GroupOverride.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Fixtures;
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Fixtures/HasDateTimeImmutableWithNullValue.php
tests/Fixtures/HasDateTimeImmutableWithNullValue.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Fixtures; final class HasDateTimeImmutableWithNullValue { public ?\DateTimeImmutable $dateTime = null; public static function create(): self { return new self(); } public function getString(): ?string { return $this->...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Fixtures/IntDTO.php
tests/Fixtures/IntDTO.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Fixtures; readonly class IntDTO { public function __construct( public int $foo, ) { } }
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Fixtures/AddressDTOWithReadonly.php
tests/Fixtures/AddressDTOWithReadonly.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Fixtures; final class AddressDTOWithReadonly { private readonly string $city; public function __construct(string $city) { $this->city = $city; } public function getCity(): string { return $this->city; } }
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false
jolicode/automapper
https://github.com/jolicode/automapper/blob/c57809e05578fdbca17c3b553551e5bdc1329e2b/tests/Fixtures/User.php
tests/Fixtures/User.php
<?php declare(strict_types=1); namespace AutoMapper\Tests\Fixtures; use AutoMapper\Attribute\MapTo; class User { /** * @var int */ #[MapTo(target: 'array', property: '_id')] #[MapTo(target: 'array', property: 'id')] private $id; /** * @var string */ public $name; /*...
php
MIT
c57809e05578fdbca17c3b553551e5bdc1329e2b
2026-01-05T02:22:57.532250Z
false