src/Decoder.php
private function doDecode()
    {
        switch ($this->getChar()) {

            case "i":
                ++$this->offset;
                return $this->decodeInteger();

            case "l":
                ++$this->offset;
                return $this->decodeList();

            case "d":
                ++$this->offset;
                return $this->decodeDict();

            default:
                if (ctype_digit($this->getChar())) {
                    return $this->decodeString();
                }

        }

        throw new RuntimeException("Unknown entity found at offset $this->offset");
    }
private function doDecode()
    {
        switch ($this->getChar()) {

            case "i":
                ++$this->offset;
                return $this->decodeInteger();

            case "l":
                ++$this->offset;
                return $this->decodeList();

            case "d":
                ++$this->offset;
                return $this->decodeDict();

            default:
                if (ctype_digit($this->getChar())) {
                    return $this->decodeString();
                }

        }

        throw new RuntimeException("Unknown entity found at offset $this->offset");
    }
private function doDecode ( ) { switch ( $ this -> getChar ( ) ) { case "i" : ++ $ this -> offset ; return $ this -> decodeInteger ( ) ; case "l" : ++ $ this -> offset ; return $ this -> decodeList ( ) ; case "d" : ++ $ this -> offset ; return $ this -> decodeDict ( ) ; default : if ( ctype_digit ( $ this -> getChar ( ) ) ) { return $ this -> decodeString ( ) ; } } throw new RuntimeException ( "Unknown entity found at offset $this->offset" ) ; }
Iterate over encoded entities in the source string and decode them

@return mixed   Returns the decoded value.
@throws RuntimeException
Iterate over encoded entities in the source string and decode them