// SPDX-FileCopyrightText: 2004-2023 Ryan Parman, Sam Sneddon, Ryan McCue
// SPDX-License-Identifier: BSD-3-Clause
* Manages `<media:copyright>` copyright tags as defined in Media RSS
* Used by {@see \SimplePie\Enclosure::get_copyright()}
* This class can be overloaded with {@see \SimplePie\SimplePie::set_copyright_class()}
* Constructor, used to input the data
* For documentation on all the parameters, see the corresponding
* properties and their accessors
public function __construct(
public function __toString()
// There is no $this->data here
return md5(serialize($this));
* @return string|null URL to copyright information
public function get_url()
if ($this->url !== null) {
* Get the attribution text
public function get_attribution()
if ($this->label !== null) {
class_alias('SimplePie\Copyright', 'SimplePie_Copyright');