ID我有一個API工作,我將返回這些值:從它在PHP:獲取從對象
CultuurNet\Auth\User Object ([id:protected] => c23e4336-8f84-4501-9253-8b2faage5291 [tokenCredentials:protected] => CultuurNet\Auth\TokenCredentials Object ([token:protected] => 7f0be1ffab3a456a8a8aa5efeea86c1f [secret:protected] => ab3c927180d7854de0e8e5842a21bc92f))
我怎樣才能retreave的[ID保護]?
不能。受保護的成員是從類中唯一的訪問:http://stackoverflow.com/questions/4643274/php-protected-classes-and-properties-protected-from-whom –
只有公共屬性/方法檢索 – samayo