for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
/**
* This file is part of the daikon-cqrs/interop project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Daikon\Tests\Interop\Fixture;
use Daikon\Interop\FromNativeInterface;
use Daikon\Interop\FromToNativeTrait;
use Daikon\Interop\MakeEmptyInterface;
use Daikon\Interop\ToNativeInterface;
* @map(mockValue, Daikon\Tests\Interop\Fixture\MockValue::fromNative)
* @map(otherMockValue, Daikon\Tests\Interop\Fixture\MockValue::customFactory)
final class AnnotatedValue implements FromNativeInterface, ToNativeInterface, MakeEmptyInterface
{
use FromToNativeTrait;
private ?MockValue $mockValue;
private MockValue $otherMockValue;
public static function makeEmpty(): self
return new self;
}
public function getMockValue(): MockValue
return $this->mockValue ?? MockValue::makeEmpty();
public function getOtherMockValue(): MockValue
return $this->otherMockValue;