src/ExamplesService/Type.php
public function object(float $min, float $max)
    {
        $populate = function (bool $extended = false) use ($min, $max) {
            $class = 'Cawa\\SwaggerServer\\ExamplesService\\' . ($extended ? 'ObjectExtended' : 'Object');
            $object = new $class();
            $object->string = $this->String((int) $max);
            if ($extended) {
                $object->extendString = $this->String((int) $max);
            }
            $object->integer = $this->Integer((int) $min, (int) $max);
            $object->float = $this->Float((int) $min, (int) $max);
            $object->boolean = $this->Boolean();
            $object->integerMap = [
                $this->String((int) $max) => $this->Integer((int) $min, (int) $max),
                $this->String((int) $max) => $this->Integer((int) $min, (int) $max),
                $this->String((int) $max) => $this->Integer((int) $min, (int) $max),
            ];

            $object->stringMap = [
                $this->String((int) $max) => $this->String((int) $max),
                $this->String((int) $max) => $this->String((int) $max),
                $this->String((int) $max) => $this->String((int) $max),
            ];
            $object->datetime = $this->Date(new DateTime());

            return $object;
        };

        $return = $populate();

        for ($i = 0; $i < 3; $i++) {
            $object = $populate(true);
            $return->objects[] = $object;
        }

        return $return;
    }
public function object(float $min, float $max)
    {
        $populate = function (bool $extended = false) use ($min, $max) {
            $class = 'Cawa\\SwaggerServer\\ExamplesService\\' . ($extended ? 'ObjectExtended' : 'Object');
            $object = new $class();
            $object->string = $this->String((int) $max);
            if ($extended) {
                $object->extendString = $this->String((int) $max);
            }
            $object->integer = $this->Integer((int) $min, (int) $max);
            $object->float = $this->Float((int) $min, (int) $max);
            $object->boolean = $this->Boolean();
            $object->integerMap = [
                $this->String((int) $max) => $this->Integer((int) $min, (int) $max),
                $this->String((int) $max) => $this->Integer((int) $min, (int) $max),
                $this->String((int) $max) => $this->Integer((int) $min, (int) $max),
            ];

            $object->stringMap = [
                $this->String((int) $max) => $this->String((int) $max),
                $this->String((int) $max) => $this->String((int) $max),
                $this->String((int) $max) => $this->String((int) $max),
            ];
            $object->datetime = $this->Date(new DateTime());

            return $object;
        };

        $return = $populate();

        for ($i = 0; $i < 3; $i++) {
            $object = $populate(true);
            $return->objects[] = $object;
        }

        return $return;
    }
public function object ( float $ min , float $ max ) { $ populate = function ( bool $ extended = false ) use ( $ min , $ max ) { $ class = 'Cawa\\SwaggerServer\\ExamplesService\\' . ( $ extended ? 'ObjectExtended' : 'Object' ) ; $ object = new $ class ( ) ; $ object -> string = $ this -> String ( ( int ) $ max ) ; if ( $ extended ) { $ object -> extendString = $ this -> String ( ( int ) $ max ) ; } $ object -> integer = $ this -> Integer ( ( int ) $ min , ( int ) $ max ) ; $ object -> float = $ this -> Float ( ( int ) $ min , ( int ) $ max ) ; $ object -> boolean = $ this -> Boolean ( ) ; $ object -> integerMap = [ $ this -> String ( ( int ) $ max ) => $ this -> Integer ( ( int ) $ min , ( int ) $ max ) , $ this -> String ( ( int ) $ max ) => $ this -> Integer ( ( int ) $ min , ( int ) $ max ) , $ this -> String ( ( int ) $ max ) => $ this -> Integer ( ( int ) $ min , ( int ) $ max ) , ] ; $ object -> stringMap = [ $ this -> String ( ( int ) $ max ) => $ this -> String ( ( int ) $ max ) , $ this -> String ( ( int ) $ max ) => $ this -> String ( ( int ) $ max ) , $ this -> String ( ( int ) $ max ) => $ this -> String ( ( int ) $ max ) , ] ; $ object -> datetime = $ this -> Date ( new DateTime ( ) ) ; return $ object ; } ; $ return = $ populate ( ) ; for ( $ i = 0 ; $ i < 3 ; $ i ++ ) { $ object = $ populate ( true ) ; $ return -> objects [ ] = $ object ; } return $ return ; }
Return a random object.

with all possible primitive type

@httpmethod GET
@auth None

@param float $min the min value @validation(gte:0|lte:20)
@param float $max the max value @validation(gte:0|lt:20)

@throws ResponseCode 422 max must be greater than min

@return \Cawa\SwaggerServer\ExamplesService\Object
Return a random object .