public function setToken($token) {
    // check passed data
    if(!is_null($token) && !is_array($token)) {
      // bad data passed
      throw new LinkedInException('LinkedIn->setToken(): bad data passed, $token_access should be in array format.');
    }
    
    // set token
    $this->token = $token;
	}
public function setToken($token) {
    // check passed data
    if(!is_null($token) && !is_array($token)) {
      // bad data passed
      throw new LinkedInException('LinkedIn->setToken(): bad data passed, $token_access should be in array format.');
    }
    
    // set token
    $this->token = $token;
	}
public function setToken ( $ token ) { // check passed data if ( ! is_null ( $ token ) && ! is_array ( $ token ) ) { // bad data passed throw new LinkedInException ( 'LinkedIn->setToken(): bad data passed, $token_access should be in array format.' ) ; } // set token $ this -> token = $ token ; }
Set the token property.

@return arr $token
The LinkedIn OAuth token.
Set the token property .