/** * Wraps parent constructor defining initial values. * * @param string $message Message translation key. * @param string[] $tArgs Array of additional translation arguments. * * @since 0.1.0 */ public function __construct($message = 'badRequest.invalidPageNumber', $tArgs = array()) { parent::__construct(400, $message, $tArgs); }
/** * Simple wrapper around parent {@link parent::__construct()} method. * * @param int $messageKey Translation key for message to be displayed. * @param string[] $tArgs Additional translation args for message. * * @since 0.1.0 */ public function __construct($messageKey, $tArgs = array()) { parent::__construct(400, $messageKey, 0, $tArgs); }