Esempio n. 1
0
 /**
  * @param int                    $replyType
  * @param StackReadOnlyInterface $stack
  */
 public function __construct($replyType, StackReadOnlyInterface $stack)
 {
     $isOk = $replyType === self::REPLY_TYPE_RESOURCE_STARTED || $replyType === self::REPLY_TYPE_RESOURCE_COMPLETED;
     $isOk ?: Exceptions::throwInvalidArgument('replyType', $replyType);
     parent::__construct($replyType, $stack);
 }
Esempio n. 2
0
 /**
  * @param int                    $replyType
  * @param StackReadOnlyInterface $stack
  */
 public function __construct($replyType, StackReadOnlyInterface $stack)
 {
     assert('$replyType === ' . self::REPLY_TYPE_RESOURCE_STARTED . ' || ' . '$replyType === ' . self::REPLY_TYPE_RESOURCE_COMPLETED);
     parent::__construct($replyType, $stack);
 }