parameters->get('filename')) { return $name; } else { return $this->parameters->get('name'); } } /** * Get attachment file size * * @return int Number of bytes */ public function getSize() { return strlen($this->getDecodedContent()); //return $this->bytes; } }