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 | |
declare(strict_types=1); | |
class AddressDepartamentContentQuery implements ContentQuery | |
{ | |
private $addressRepository; | |
private $departamentRepository; | |
public function __consturct(AddressRepository $addressRepository, DepartamentRepository $departamentRepository) |
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 | |
declare(strict_types=1); | |
class SellOnlineTicket implements Command | |
{ | |
public function clientDetails(): ClientDetails | |
{} | |
public function clientEmail(): Email |
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 | |
declare(strict_types=1); | |
namespace Cocoders\core\Application\UseCase; | |
use Cocoders\Core\Domain\Users; | |
use Cocoders\Core\Application\TransactionManager; | |
use Cocoders\core\Application\UseCase\RegisterUser\UserFactory; | |
use Cocoders\core\Application\UseCase\RegisterUser\Command; |
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 | |
public function getContacts(): array | |
{ | |
return array_map(function (Contact $contact) { return $contact->shortContact(); }, $this->contacts->toArray()); | |
} |
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 | |
declare(strict_types=1); | |
namespace Cocoders\Application\View\Blog; | |
class AdminPost | |
{ | |
private $id; | |
private $name; |
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
FROM php:7.0.7-cli | |
RUN apt-get update && apt-get install -y git zlib1g-dev | |
RUN docker-php-ext-install zip |
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 | |
$xmlString = <<<XML | |
<ul> | |
<li class="applicationDate"> | |
<strong>Data aplikacji: </strong> | |
" | |
19/10/15 | |
" | |
</li> |
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 | |
interface CreateProductResponder | |
{ | |
public function productCreated(ProductId $productId); | |
} |
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
$post->leaveAComment( | |
$this->getUser()->getEmail(), | |
$form->get('content')->getData() | |
); | |
$this->getDoctrine()->getManager()->flush(); |
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 L3l0Labs\SystemAccess; | |
use Symfony\Component\Security\Core\Role\Role; | |
use Symfony\Component\Security\Core\User\AdvancedUserInterface; | |
class Account implements AdvancedUserInterface | |
{ | |
private $id; |
NewerOlder