난 그냥 알아낼 수 없습니다 :PHP 클래스이 오류도 나타나지 이유
I가공지 사항 : 정의되지 않은 변수 : /.../classname.class에서 인증 시간.
$authTime
생성자 내에 정의되지 않은 참조
class ClassName {
private $authTime = null;
const API_URL = '...';
const CLIENT_ID = '...';
const CLIENT_SECRET = '...';
private static $TOKEN = NULL;
public function __construct() {
$this->_authTime = $authTime; // <----- Line 33
if(!self::$TOKEN OR $this->AuthTime('GET') > 3600 OR !$this->_authTime) {
self::authorise();
}
}
public function getAuthTime() {
return $this->_authTime; // Returns NULL
}
어디에서 정의됩니까? 생성자를 선언 한 직후에 사용합니까? 그러나 결코 선언하지 않았다. 그리고 왜 재산 앞의 밑줄? '_authTime' – mega6382
https://stackoverflow.com/review/suggested-edits/17688430 어째서 그 목소리가 뒤로 편집을 추가하는 편집입니까 ?? –