Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. SerializedName.php

function SerializedName::__construct

Parameters

string $serializedName The name of the property as it will be serialized:

File

vendor/symfony/serializer/Attribute/SerializedName.php, line 25

Class

SerializedName
@author Fabien Bourigault <bourigaultfabien@gmail.com>

Namespace

Symfony\Component\Serializer\Attribute

Code

public function __construct(string $serializedName) {
    if ('' === $serializedName) {
        throw new InvalidArgumentException(\sprintf('Parameter given to "%s" must be a non-empty string.', self::class));
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal