wp-includes/php-ai-client/src/Providers/DTO/ProviderMetadata.php:85Constructor.
$idstring$namestring$typeWordPress\AiClient\Providers\Enums\ProviderTypeEnum$credentialsUrlstring|nulloptionalnull$authenticationMethodWordPress\AiClient\Providers\Http\Enums\RequestAuthenticationMethod|nulloptionalnull$descriptionstring|nulloptionalnull$logoPathstring|nulloptionalnull public function __construct(string $id, string $name, ProviderTypeEnum $type, ?string $credentialsUrl = null, ?RequestAuthenticationMethod $authenticationMethod = null, ?string $description = null, ?string $logoPath = null) { if (!preg_match('/^[a-z0-9\-_]+$/', $id)) { throw new InvalidArgumentException(sprintf( // phpcs:ignore Generic.Files.LineLength.TooLong 'Invalid provider ID "%s". Only lowercase alphanumeric characters, hyphens, and underscores are allowed.', $id )); } $this->id = $id; $this->name = $name; $this->description = $description; $this->type = $type; $this->credentialsUrl = $credentialsUrl; $this->authenticationMethod = $authenticationMethod; $this->logoPath = $logoPath; }Introduced in 0.1.0. Unchanged from 7.0.4 through 7.1.0.
Signature, return type and hooks compared across 2 parsed releases.
src/wp-includes/php-ai-client/src/Providers/DTO/ProviderMetadata.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.