Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
public function __construct(InternalType\AbstractTypeObject $dictionary, \SplObjectStorage $processedDictionaries = null)
{
if ($dictionary->getType() != InternalType\AbstractTypeObject::TYPE_DICTIONARY) {
throw new Pdf\Exception('$dictionary mast be an indirect dictionary object.');
}
public function __construct(InternalType\AbstractTypeObject $dictionary, \SplObjectStorage $processedDictionaries = null)
{
if ($dictionary->getType() != $dictionary::TYPE_DICTIONARY) {
throw new Pdf\Exception('$dictionary mast be an indirect dictionary object.');
}
$dictionary->getType() != $dictionary::TYPE_DICTIONARY$dictionary->isDictionary()$object::static_method()$string::static_method()namespace foo;
class bar{
const BAZ = 'baz';
}
$string = 'bar';
echo $string::BAZ; // Fatal error: Class 'bar' not found
$string = __NAMESPACE__.'\bar';
echo $string::BAZ; // baz
$string = 'foo\bar';
echo $string::BAZ; // baz
Доступ к статическим данным