PHP - Interfaces and Traits
What will be the output of this code?
interface Status {
const OK = 1;
}
class Response implements Status {
public function getStatus() {
return Status::OK;
}
}
$response = new Response();
echo $response->getStatus();