This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\Extension\Core\Type\CollectionType; | |
use Symfony\Component\Form\Extension\Core\Type\TextType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\Form\FormEvent; | |
use Symfony\Component\Form\FormEvents; | |
final class RecordResult extends AbstractType |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @ORM\Entity() | |
* @ORM\EntityListeners({"Acme\AppBundle\Event\CustomerListener"}) | |
*/ | |
class Customer() | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Plusquam\Bundle\ContractBundle\Block; | |
use Sonata\BlockBundle\Block\BlockContextInterface; | |
use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface; | |
use Symfony\Component\HttpFoundation\Response; | |
use Sonata\AdminBundle\Form\FormMapper; | |
use Sonata\AdminBundle\Validator\ErrorElement; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\Common\Infrastructure\Prooph\EventStore; | |
use Prooph\Common\Messaging\Message; | |
use Prooph\EventStore\Upcasting\SingleEventUpcaster; | |
final class Upcaster extends SingleEventUpcaster | |
{ | |
public function upcast(Message $message): array |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Sps\Bundle\PriceQuoteBundle\Entity; | |
abstract class AbstractDormerPriceQuote | |
extends PriceQuoteRequest | |
{ | |
const MIN_ROOF_PITCH = 10; | |
const MAX_ROOF_PITCH = 55; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
final class EmploymentContract extends AggregateRoot | |
{ | |
/** | |
* @param Details $contractToMerge | |
* This contract is always the initial contract and the oldest one. | |
* Since the contract to merge is always newer it always overwrites the current state. | |
*/ | |
public function mergeWith(Details $contractToMerge): void |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
final class Merger | |
{ | |
// ... | |
private function getInitialEventFromStream(EmploymentContractId $contractId): EmploymentContractSigned | |
{ | |
$query = $this->projectionManager->createQuery(); | |
$query | |
->init(function (): array { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Webmozart\Assert\Assert; | |
final class Address | |
{ | |
/** @var string|null $street */ | |
private $street; | |
/** @var Postcode|null $postcode */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* All characater were allowed in the initial value object. | |
*/ | |
final class FirstName_V1 | |
{ | |
/** @var string $name */ | |
private $name; |