- defined: documentation ( source)
<?php
class Nigger
{
function __construct()
{
if(defined(__METHOD__)) {
echo __METHOD__;
}
else {
throw new Exception('Const not defined :<');
}
}
}
$cottonCollector = new Nigger();