/** * Get a plaintext string representation of these defaults. * @return string The paste defaults. */ public function __toString() { $defaults = 'Paste Defaults:' . PHP_EOL; $defaults .= "\t" . 'Format: ' . $this->getFormat()->getName() . PHP_EOL; $defaults .= "\t" . 'Visibility: ' . Visibility::toString($this->getVisibility()) . PHP_EOL; $defaults .= "\t" . 'Expiry: ' . Expiry::toString($this->getExpiry()); return $defaults; }