__construct() 공개 메소드

Create a new event instance.
public __construct ( integer $itemId, integer $userId )
$itemId integer
$userId integer
예제 #1
0
파일: CommentEvent.php 프로젝트: owl/owl
 /**
  * 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;
 }