자료구조 Pair 클래스
(사용 가능한 버전 정보가 없으며 Git에만 있을 수 있음)
소개
pair는 Ds\Map에서 키와 값을 쌍으로 사용하는 데 사용됩니다.
클래스 개요
class Ds\Pair implements JsonSerializable {
/* Methods */
public __construct(mixed $key = ?, mixed $value = ?)
public clear(): void
public copy(): Ds\Pair
public isEmpty(): bool
public toArray(): array
}
목차
- Ds\Pair::clear — Removes all values
- Ds\Pair::__construct — Creates a new instance
- Ds\Pair::copy — Returns a shallow copy of the pair
- Ds\Pair::isEmpty — Returns whether the pair is empty
- Ds\Pair::jsonSerialize — Returns a representation that can be converted to JSON
- Ds\Pair::toArray — Converts the pair to an array