MangoPay/Libraries/DefaultStorageStrategy.php
public function Get()
    {
        $filename = $this->GetPathToFile();
        if (!file_exists($filename)) {
            return null;
        }
        
        $data = file_get_contents($filename);
        if ($data === false) {
            return null;
        }
        
        $serialized = str_replace($this->_prefixContent, '', $data);
        return unserialize($serialized);
    }
public function Get()
    {
        $filename = $this->GetPathToFile();
        if (!file_exists($filename)) {
            return null;
        }
        
        $data = file_get_contents($filename);
        if ($data === false) {
            return null;
        }
        
        $serialized = str_replace($this->_prefixContent, '', $data);
        return unserialize($serialized);
    }
public function Get ( ) { $ filename = $ this -> GetPathToFile ( ) ; if ( ! file_exists ( $ filename ) ) { return null ; } $ data = file_get_contents ( $ filename ) ; if ( $ data === false ) { return null ; } $ serialized = str_replace ( $ this -> _prefixContent , '' , $ data ) ; return unserialize ( $ serialized ) ; }
Gets the current authorization token.
@return \MangoPay\Libraries\OAuthToken Currently stored token instance or null.
Gets the current authorization token .