Exemplo n.º 1
0
 /**
  * PostTitleWasChanged constructor.
  *
  * @param PostId $id
  * @param string $title
  */
 public function __construct(PostId $id, $title)
 {
     parent::__construct($id);
     $this->title = $title;
 }
Exemplo n.º 2
0
 /**
  * PostWasCreated constructor.
  *
  * @param PostId $id
  * @param string $title
  * @param string $content
  */
 public function __construct(PostId $id, $title, $content)
 {
     parent::__construct($id);
     $this->title = $title;
     $this->content = $content;
 }