class final Core · roukmoute/pdf 0.6.2

PDF\Graphics\OptionalContent\GroupCollection
Canonical, unique explicit OCG identities; equal names do not merge groups.

Read the source declaration ↗

Inheritance and contracts

Parent : PDF\Syntax\Object\ArrayType

Interfaces : Countable, IteratorAggregate, PDF\Syntax\FileStructure\BasicType, Stringable, Traversable

Construction

__construct()

public function __construct(PDF\Graphics\OptionalContent\OptionalContentGroup ...$groups)

Declared by PDF\Graphics\OptionalContent\GroupCollection · View the code ↗

Declared methods

contains()

public function contains(PDF\Graphics\OptionalContent\OptionalContentGroup $group): bool

Declared by PDF\Graphics\OptionalContent\GroupCollection · View the code ↗

Inherited methods

4 methods from parents and contracts

__toString()

public function __toString(): string

Declared by PDF\Syntax\Object\ArrayType · View the code ↗

count()

public function count(): int

Declared by PDF\Syntax\Object\ArrayType · View the code ↗

getIterator()

public function getIterator(): Traversable

Declared by PDF\Syntax\Object\ArrayType · View the code ↗

toPdf()

public function toPdf(PDF\Serialization\SerializationContext $context): string

Declared by PDF\Syntax\Object\ArrayType · View the code ↗

Properties

DeclarationOrigin and documentation
public readonly array $groupsPDF\Graphics\OptionalContent\GroupCollection
@var list<OptionalContentGroup>
public readonly array $itemsPDF\Syntax\Object\ArrayType
@var list<BasicType>