public function createPermanentCode ($value)
    {
        $str = is_string($value);

        $args = $this->createCode([
            'action_name' => $str ? 'QR_LIMIT_STR_SCENE' : 'QR_LIMIT_SCENE',
            'action_info' => [
                'scene' => [
                    ($str ? 'scene_str' : 'scene_id') => $value,
                ],
            ],
        ]);

        return new Code\Permanent($args[0], $args[1]);
    }
public function createPermanentCode ($value)
    {
        $str = is_string($value);

        $args = $this->createCode([
            'action_name' => $str ? 'QR_LIMIT_STR_SCENE' : 'QR_LIMIT_SCENE',
            'action_info' => [
                'scene' => [
                    ($str ? 'scene_str' : 'scene_id') => $value,
                ],
            ],
        ]);

        return new Code\Permanent($args[0], $args[1]);
    }
public function createPermanentCode ( $ value ) { $ str = is_string ( $ value ) ; $ args = $ this -> createCode ( [ 'action_name' => $ str ? 'QR_LIMIT_STR_SCENE' : 'QR_LIMIT_SCENE' , 'action_info' => [ 'scene' => [ ( $ str ? 'scene_str' : 'scene_id' ) => $ value , ] , ] , ] ) ; return new Code \ Permanent ( $ args [ 0 ] , $ args [ 1 ] ) ; }
Creates and returns an instance of a new permanent QR code. This code can be used to download the
code contents.

@param string|int $value

@return Code\Permanent

@throws Exception
Creates and returns an instance of a new permanent QR code . This code can be used to download the code contents .