/** * @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); }
/** * @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); }