Skip to content

Relationships ​

php
final readonly class PPTXenigma\Relationships

The relationships of a file of the archive: the files and the links that it refers to.

Source: src/Relationships.php

Methods ​

of() ​

php
public static function of(Archive $archive, string $path): self

The relationships that the file at the given path of the archive lists, none if it lists nothing.

firstTarget() ​

php
public function firstTarget(string $type): string

targets() ​

php
public function targets(string $type = null): array
ParameterDescription
$typethe end of the type of the relationships to keep, such as "/slide"; null keeps them all

Returns array<string, string> the target of each relationship, by id

Documentation of 1.0.0 , built from 5dd2e99 on 1.0.0 by pipeline #37507528046 on 2026-10-06.