File "AttributeOverrides.php"
Full Path: /home/warrior1/public_html/languages/wp-content/plugins/mailpoet/vendor-prefixed/doctrine/orm/lib/Doctrine/ORM/Mapping/AttributeOverrides.php
File size: 579 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
declare (strict_types=1);
namespace MailPoetVendor\Doctrine\ORM\Mapping;
if (!defined('ABSPATH')) exit;
use Attribute;
use function is_array;
#[\Attribute(Attribute::TARGET_CLASS)]
final class AttributeOverrides implements Annotation
{
public $overrides = [];
public function __construct($overrides)
{
if (!is_array($overrides)) {
$overrides = [$overrides];
}
foreach ($overrides as $override) {
if (!$override instanceof AttributeOverride) {
throw MappingException::invalidOverrideType('AttributeOverride', $override);
}
$this->overrides[] = $override;
}
}
}