public function setFileProperty($option, $value) { if (isset($this->fileProperties[$option])) { $this->fileProperties[$option] = $value; } else { $this->fileProperties = array_add($this->fileProperties, $option, $value); } return $this; }