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);
Output for git.master, git.master_jit, rfc.property-hooks
object(Migros\Model\Brand)#1 (15) { ["id"]=> NULL ["name"]=> NULL ["slug"]=> NULL ["title"]=> NULL ["abstract"]=> NULL ["keywords"]=> array(0) { } ["headline"]=> NULL ["description"]=> NULL ["image"]=> NULL ["migrosOwned"]=> NULL ["importance"]=> NULL ["links"]=> array(0) { } ["tags":protected]=> array(0) { } ["score"]=> NULL ["scoreExplanation"]=> NULL }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
58 ms | 402 KiB | 8 Q