class ABC{
public function __construct(){}
// There have a parameter
public function check($data){
// There have a variable
$available = null;
if(true){
$available = true;
}else{
$available = false;
}
}
}
$obj= new ABC();
// I want to access this $available
$obj->available;
How can I access $available value from the class method?
Is there a dynamic parameter in this method (this is the problem)?