Owl\Events\Item\BaseItemEvent::__construct PHP Method

__construct() public method

Create a new event instance.
public __construct ( integer $itemId, integer $userId )
$itemId integer
$userId integer
    public function __construct($itemId, $userId)
    {
        $this->itemId = $itemId;
        $this->userId = $userId;
    }

Usage Example

Example #1
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;
 }