Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Returns the name of the class of an object
<?php get_class(object $object = ?): string
<?php $route->uses(get_class($component).'@mount');
try {
<?php }
if (! $model) {
throw (new ModelNotFoundException())->setModel(get_class($instance), [$parameterValue]);
}
return $model;
<?php $data[$key] = $dehydrateChild($key, $child);
}
return [$data, ['class' => get_class($target)]];
}
function hydrate($data, $meta, $hydrateChild)
<?php public function getTypeOfModels()
{
$this->modelsType = get_class($this->models);
}
public function save()
<?php return [
$data,
['class' => get_class($target)],
];
}
<?php return $this->{$name};
};
$getProperty = $getProperty->bindTo($this->obj, get_class($this->obj));
return $getProperty();
}
<?php $this->{$name} = $value;
};
$setProperty = $setProperty->bindTo($this->obj, get_class($this->obj));
$setProperty();
}
<?php function isDiscoverable($classOrName)
{
if (is_object($classOrName)) {
$classOrName = get_class($classOrName);
}
if (class_exists($name = $classOrName)) {
<?php protected function classToName($class)
{
$resolvedAliases = array_map(fn ($i) => is_object($i) ? get_class($i) : $i, $this->aliases);
if ($name = array_search($class, $resolvedAliases)) return $name;
<?php function dehydrate($target) {
return [
$target->format(DateTimeInterface::ATOM),
['type' => array_search(get_class($target), static::$types)],
];
}
<?php return [
$data,
['class' => get_class($target)]
];
}
<?php function dehydrate($target) {
return [
$target->value,
['class' => get_class($target)]
];
}
<?php }
if ($method === 'get') {
throw new \Exception('This synth doesn\'t support getting properties: '.get_class($this));
}
if ($method === 'set') {
<?php }
if ($method === 'set') {
throw new \Exception('This synth doesn\'t support setting properties: '.get_class($this));
}
if ($method === 'unset') {
<?php }
if ($method === 'unset') {
throw new \Exception('This synth doesn\'t support unsetting properties: '.get_class($this));
}
if ($method === 'call') {