3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Migros\Model; /** * Represents the Brand information */ class Brand { /** * ID of the brand * * @var string * @Serializer\Type("string") * @Serializer\XmlAttribute * @Serializer\Groups({"api"}) */ public $id; /** * Name of the brand * * @var string * @Serializer\Type("string") * @Serializer\Groups({"api"}) */ public $name; /** * Unique user-friendly ID * * @var string * @Serializer\Type("string") * @Serializer\Groups({"api"}) */ public $slug; /** * The title, e.g. suitable for the page title element * * @var string * @Serializer\Type("string") * @Serializer\Groups({"api"}) */ public $title; /** * A short, plain text description, e.g. suitable for the page meta element * * @var string * @Serializer\Type("string") * @Serializer\Groups({"api"}) */ public $abstract; /** * Keywords, e.g. suitable for the page meta element * * @var array * @Serializer\Type("array<string>") * @Serializer\XmlList(entry="keyword") * @Serializer\Groups({"api"}) */ public $keywords = array(); /** * The caption to the description * * @var string * @Serializer\Type("string") * @Serializer\Groups({"api"}) */ public $headline; /** * The long description of the brand (can contain HTML) * * @var string * @Serializer\Type("string") * @Serializer\Groups({"api"}) */ public $description; /** * Image of the brand * * @var Image * @Serializer\Type("Migros\Model\Image") * @Serializer\Groups({"api"}) */ public $image; /** * Whether this brand is owned by Migros (deprecated, use the information in tags instead) * * @var boolean * @Serializer\Type("boolean") * @Serializer\Groups({"api"}) * @deprecated since Sprint 27 */ public $migrosOwned; /** * Importance of the brand * * @var integer * @Serializer\Type("integer") * @Serializer\Groups({"api"}) */ public $importance; /** * Collection of links indexed by string identifier * * @var array[Link] * @Serializer\Type("array<string, Migros\Model\Link>") * @Serializer\XmlMap(entry="link", keyAttribute="id") * @Serializer\Groups({"api"}) */ public $links = array(); /** * Tags for flagging certain brands * * @var array * @Serializer\Type("array<string>") * @Serializer\XmlList(entry="tag") * @Serializer\Groups({"api"}) */ protected $tags = array(); /** * The score of the elastic search result in debug mode * * @var float * @Serializer\Type("float") * @Serializer\XmlAttribute * @Serializer\Groups({"scored-brands"}) */ public $score; /** * The score explanation of the elastic search result in debug mode * * @var array * @Serializer\Type("array") * @Serializer\XmlKeyValuePairs * @Serializer\Groups({"scored-brands"}) */ public $scoreExplanation; } $d = new Brand(); var_dump($d);

preferences:
45.29 ms | 402 KiB | 5 Q