src/Response/Status.php
public static function get($payload)
    {
        switch ($payload) {
            case 'OK':
            case 'QUEUED':
                if (isset(self::$$payload)) {
                    return self::$$payload;
                }

                return self::$$payload = new self($payload);

            default:
                return new self($payload);
        }
    }
public static function get($payload)
    {
        switch ($payload) {
            case 'OK':
            case 'QUEUED':
                if (isset(self::$$payload)) {
                    return self::$$payload;
                }

                return self::$$payload = new self($payload);

            default:
                return new self($payload);
        }
    }
public static function get ( $ payload ) { switch ( $ payload ) { case 'OK' : case 'QUEUED' : if ( isset ( self :: $ $ payload ) ) { return self :: $ $ payload ; } return self :: $ $ payload = new self ( $ payload ) ; default : return new self ( $ payload ) ; } }
Returns an instance of a status response object.

Common status responses such as OK or QUEUED are cached in order to lower
the global memory usage especially when using pipelines.

@param string $payload Status response payload.

@return string
Returns an instance of a status response object .