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
final class DatabaseName implements Name { | |
private $db; | |
private $table; | |
public function __construct(Database $db, string $table) { | |
$this->db = $db; | |
$this->table = $table; | |
} | |
public function rename($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
<?php | |
namespace Memory\PlayingField; | |
use Memory\PlayingField; | |
final class IncompletePlayingField | |
{ | |
private $cards = array(); | |
private $numberOfCards = 0; |
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
final class User | |
{ | |
private $password; | |
public function changePassword($string) | |
{ | |
$this->password = new Password($string); | |
} | |
} |
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 | |
trait DomainEventProxy | |
{ | |
private $eventMethodMapping = []; | |
private function callMappedMethod(DomainEvent $event, ...$arguments) | |
{ | |
$method = $this->resolveMethod($event); | |
$this->$method($event, ...$arguments); |
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 MonthNumber | |
{ | |
private $number; | |
public function __construct(int $number) | |
{ | |
$this->number = $number; | |
} |
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 Purist\Message; | |
use InvalidArgumentException; | |
use Psr\Http\Message\MessageInterface; | |
use Psr\Http\Message\StreamInterface; | |
final class HttpMessage implements MessageInterface | |
{ |
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); | |
abstract class EventFactory | |
{ | |
public function apply() | |
} |
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
module Main exposing (..) | |
import Html exposing (..) | |
import Html.App as App | |
import Html.Attributes exposing (..) | |
import Json.Decode as Json exposing ((:=)) | |
import Task | |
import Http | |
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 AppBundle\Api\Filter; | |
use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\AbstractFilter; | |
use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface; | |
use Doctrine\ORM\QueryBuilder; | |
/** | |
* NullFilter for api-platform |
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
Verifying that "nicholasruunu.id" is my Blockstack ID. https://onename.com/nicholasruunu |