hash = $result->getString(0); $this->reason = $result->getString(1); $this->created = $result->getInteger(2); } public function getHash(): string { return $this->hash; } public function getReason(): string { return $this->reason; } public function isCopyrightTakedown(): bool { return $this->reason === 'copyright'; } public function isRulesViolation(): bool { return $this->reason === 'rules'; } public function getCreatedTime(): int { return $this->created; } public function getCreatedAt(): DateTime { return DateTime::fromUnixTimeSeconds($this->created); } }