providerId; } /** * The final provider-scoped object key. * * @since 1.0.0 * * @return string */ public function key(): string { return $this->key; } /** * The stored file's size in bytes. * * @since 1.0.0 * * @return int */ public function filesize(): int { return $this->filesize; } /** * The stored file's SHA-256 checksum, as 64 lowercase hex characters. * * @since 1.0.0 * * @return string */ public function sha256(): string { return $this->sha256; } /** * Export the stored-file fields. * * @since 1.0.0 * * @return array{provider_id: string, key: string, filesize: int, sha256: string} */ public function toArray(): array { return array( 'provider_id' => $this->providerId, 'key' => $this->key, 'filesize' => $this->filesize, 'sha256' => $this->sha256, ); } /** * Export the stored-file fields for JSON. * * @since 1.0.0 * * @return array{provider_id: string, key: string, filesize: int, sha256: string} */ public function jsonSerialize(): array { return $this->toArray(); } }