public function __construct($contents) { $this->guardAgainstInvalidContents($contents); $this->contents = $contents; }