FilterList(function ($oAttachment) { return $oAttachment && $oAttachment->IsInline(); }); return \is_array($aList) ? \count($aList) : 0; } public function NonInlineCount() : int { $aList = $this->FilterList(function ($oAttachment) { return $oAttachment && !$oAttachment->IsInline(); }); return \is_array($aList) ? \count($aList) : 0; } public function SpecData() : array { return $this->MapList(function ($oAttachment) { if ($oAttachment) { return array($oAttachment->FileName(true), $oAttachment->MimeType()); } return null; }); } }