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
package com.example; | |
import java.util.HashMap; | |
final public class AnimalFarm { | |
private HashMap<String, Animal> animals = new HashMap<>(); | |
public AnimalFarm() { | |
animals.put("dog", new Dog()); |
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 | |
class Lecture extends EventSourcedAggregateRoot | |
{ | |
public function __construct(LectureId $id, StartTime $startTime) { | |
} | |
public function remindStudents() | |
{ | |
$this->guardNotLAstDay(); |
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 CoreDomain\Car; | |
class Car | |
{ | |
private $id; | |
private $make; | |
private $model; | |
private $registrationNumber; |