_flags = array_merge($this->_flags, array_combine($params['flags'],$params['flags'])); } parent::__construct($params); } /** * return toplines as found after headers * * @return string toplines */ public function getTopLines() { return $this->_topLines; } /** * check if flag is set * * @param mixed $flag a flag name, use constants defined in Postman_Zend_Mail_Storage * @return bool true if set, otherwise false */ public function hasFlag($flag) { return isset($this->_flags[$flag]); } /** * get all set flags * * @return array array with flags, key and value are the same for easy lookup */ public function getFlags() { return $this->_flags; } }