Esempio n. 1
0
 /**
  * create an object outbox for a user and with some stragegies
  *
  * @param int $userId user identification
  * @param SelectorStrategy $messageStrategy strategy to apply 
  */
 public function __construct($userId = NULL, $messageStrategy = NULL)
 {
     if (is_null($messageStrategy)) {
         $messageStrategy = new OutBoxStrategy();
     }
     parent::__construct($messageStrategy, $userId);
 }