src/CreateOutOfRangeExceptionCapableTrait.php
<?php namespace Dhii\Exception; use Exception as RootException;use Dhii\Util\String\StringableInterface as Stringable; /** * Functionality for creating Dhii Out of Range exceptions. * * @since [*next-version*] */trait CreateOutOfRangeExceptionCapableTrait{ /** * Creates a new Dhii Out Of Range exception. * * @since [*next-version*] * * @param string|Stringable|int|float|bool|null $message The message, if any. * @param int|float|string|Stringable|null $code The numeric error code, if any. * @param RootException|null $previous The inner exception, if any. * @param mixed|null $argument The value that is out of range, if any. * * @return OutOfRangeException The new exception. */The method _createOutOfRangeException is not named in camelCase. protected function _createOutOfRangeException( $message = null, $code = null, RootException $previous = null, $argument = null ) { return new OutOfRangeException($message, $code, $previous, $argument); }}