public function decode()
    {
        // Fix plus to space conversion issue
        $this->data = str_replace(' ', '+', $this->data);

        // Do decoding
        $this->data = base64_decode($this->data);

        return $this;
    }
public function decode()
    {
        // Fix plus to space conversion issue
        $this->data = str_replace(' ', '+', $this->data);

        // Do decoding
        $this->data = base64_decode($this->data);

        return $this;
    }
public function decode ( ) { // Fix plus to space conversion issue $ this -> data = str_replace ( ' ' , '+' , $ this -> data ) ; // Do decoding $ this -> data = base64_decode ( $ this -> data ) ; return $ this ; }
Base 64 encode the data, ready for transit

@return self
Base 64 encode the data ready for transit