예제 #1
0
 /**
  * PostTitleWasChanged constructor.
  *
  * @param PostId $id
  * @param string $title
  */
 public function __construct(PostId $id, $title)
 {
     parent::__construct($id);
     $this->title = $title;
 }
예제 #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;
 }