Inheritance: extends Owl\Events\Event, use trait Illuminate\Queue\SerializesModels
Beispiel #1
0
 public function testShouldReturnValues()
 {
     $expectedItemId = 'itemId';
     $expectedUserId = 'userId';
     $event = new BaseItemEvent($expectedItemId, $expectedUserId);
     $this->assertEquals($expectedItemId, $event->getId());
     $this->assertEquals($expectedUserId, $event->getUserId());
 }
Beispiel #2
0
 /**
  * Create a new event instance.
  *
  * @param string  $itemId
  * @param string  $userId
  * @param string  $comment
  */
 public function __construct($itemId, $userId, $comment)
 {
     parent::__construct($itemId, $userId);
     $this->comment = $comment;
 }