Skip to content

Instantly share code, notes, and snippets.

View genkovich's full-sized avatar

Kirill Sulimovsky genkovich

View GitHub Profile
<?php
class EmailConfirmation
{
public function __construct(
UserRepositoryInterface $userRepository,
TokenGeneraotorInterface $tokenGenerator,
MailerInterface $mailer
)
{
$this->userRepository = $userRepository;
<?php
class EmailConfirmation
{
public function __construct(
UserRepositoryInterface $userRepository,
TokenGeneraotorInterface $tokenGenerator,
MailerInterface $mailer
)
{
$this->userRepository = $userRepository;
<?php
class ExampleValueObject
{
private string $value;
/**
* ExampleValueObject constructor.
*
* @param string $exampleValue some example value