Skip to content

Credit

Handles <media:credit> as defined in Media RSS

Used by {@see \SimplePie\Enclosure::get_credit()} and {@see \SimplePie\Enclosure::get_credits()}

This class can be overloaded with {@see \SimplePie\SimplePie::set_credit_class()}

  • Full name: \SimplePie\Credit

Properties

role

Credited role

public string $role

See Also:

  • \SimplePie\get_role() -

scheme

Organizational scheme

public string $scheme

See Also:

  • \SimplePie\get_scheme() -

name

Credited name

public string $name

See Also:

  • \SimplePie\get_name() -

Methods

__construct

Constructor, used to input the data

public __construct(mixed $role = null, mixed $scheme = null, mixed $name = null): mixed

For documentation on all the parameters, see the corresponding properties and their accessors

Parameters:

Parameter Type Description
$role mixed
$scheme mixed
$name mixed

__toString

String-ified version

public __toString(): string

get_role

Get the role of the person receiving credit

public get_role(): string|null

get_scheme

Get the organizational scheme

public get_scheme(): string|null

get_name

Get the credited person/entity's name

public get_name(): string|null


Automatically generated on 2025-03-18