private function parseString(&$var, BasicObject $o)
    {
        $string = new BlobObject();
        $string->transplant($o);
        $string->encoding = BlobObject::detectEncoding($var);
        $string->size = BlobObject::strlen($var, $string->encoding);

        $rep = new Representation('Contents');
        $rep->contents = $var;
        $rep->implicit_label = true;

        $string->addRepresentation($rep);
        $string->value = $rep;

        $this->applyPlugins($var, $string, self::TRIGGER_SUCCESS);

        return $string;
    }
private function parseString(&$var, BasicObject $o)
    {
        $string = new BlobObject();
        $string->transplant($o);
        $string->encoding = BlobObject::detectEncoding($var);
        $string->size = BlobObject::strlen($var, $string->encoding);

        $rep = new Representation('Contents');
        $rep->contents = $var;
        $rep->implicit_label = true;

        $string->addRepresentation($rep);
        $string->value = $rep;

        $this->applyPlugins($var, $string, self::TRIGGER_SUCCESS);

        return $string;
    }
private function parseString ( & $ var , BasicObject $ o ) { $ string = new BlobObject ( ) ; $ string -> transplant ( $ o ) ; $ string -> encoding = BlobObject :: detectEncoding ( $ var ) ; $ string -> size = BlobObject :: strlen ( $ var , $ string -> encoding ) ; $ rep = new Representation ( 'Contents' ) ; $ rep -> contents = $ var ; $ rep -> implicit_label = true ; $ string -> addRepresentation ( $ rep ) ; $ string -> value = $ rep ; $ this -> applyPlugins ( $ var , $ string , self :: TRIGGER_SUCCESS ) ; return $ string ; }
Parses a string into a Kint BlobObject structure.

@param string      $var The input variable
@param BasicObject $o   The base object

@return BasicObject
Parses a string into a Kint BlobObject structure .