```php
<?php
$declaringClass = isset($this->embeddedClasses[$mapping['declaredField']]['declared'])
    ? $this->embeddedClasses[$mapping['declaredField']]['declared'] 
    : $this->name;