| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <[email protected]> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | |
| 12 | namespace Symfony\Component\Serializer\Attribute; |
| 13 | |
| 14 | /** |
| 15 | * Declares that serialization attributes listed on the current class should be added to the given class. |
| 16 | * |
| 17 | * Classes that use this attribute should contain only properties and methods that |
| 18 | * exist on the target class (not necessarily all of them). |
| 19 | * |
| 20 | * @author Nicolas Grekas <[email protected]> |
| 21 | */ |
| 22 | #[\Attribute(\Attribute::TARGET_CLASS)] |
| 23 | final class ExtendsSerializationFor |
| 24 | { |
| 25 | /** |
| 26 | * @param class-string $class |
| 27 | */ |
| 28 | public function __construct( |
| 29 | public string $class, |
| 30 | ) { |
| 31 | } |
| 32 | } |