Skip to content

Commit

Permalink
Version18
Browse files Browse the repository at this point in the history
A long with commands, I've identified an event. This would ordinarily be
done through some kind of event storming session with the client.
  • Loading branch information
jenkoian committed Jan 20, 2015
1 parent 60f9b70 commit e4ace65
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/Jenko/House/Event/EnteredRoomEvent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

namespace Jenko\House\Event;

class EnteredRoomEvent
{
public $roomName;
public $enteredOn;

/**
* @param $roomName
* @param \DateTime $enteredAt
*/
public function __construct($roomName, \DateTime $enteredAt = null)
{
$this->roomName = $roomName;
$this->enteredAt = $enteredAt ? $enteredAt : new \DateTime();
}
}

0 comments on commit e4ace65

Please sign in to comment.