url = $url; } /** * Gets all properties set on this element. * * @return Property[] */ public function getProperties(): array { $properties = []; // URL must precede all other properties if (null !== $this->url) { $properties[] = new Property(Property::AUDIO_URL, $this->url); } if (null !== $this->secureUrl) { $properties[] = new Property(Property::AUDIO_SECURE_URL, $this->secureUrl); } if (null !== $this->type) { $properties[] = new Property(Property::AUDIO_TYPE, $this->type); } return $properties; } }