public function getAttachments(bool $force = false) : CNabuIContactProspectAttachmentList
    {
        if ($this->nb_attachment_list->isEmpty() || $force) {
            $this->nb_attachment_list->clear();
            $this->nb_attachment_list->merge(CNabuIContactProspectAttachment::getAttachmentsForProspect($this));
        }

        return $this->nb_attachment_list;
    }
public function getAttachments(bool $force = false) : CNabuIContactProspectAttachmentList
    {
        if ($this->nb_attachment_list->isEmpty() || $force) {
            $this->nb_attachment_list->clear();
            $this->nb_attachment_list->merge(CNabuIContactProspectAttachment::getAttachmentsForProspect($this));
        }

        return $this->nb_attachment_list;
    }
public function getAttachments ( bool $ force = false ) : CNabuIContactProspectAttachmentList { if ( $ this -> nb_attachment_list -> isEmpty ( ) || $ force ) { $ this -> nb_attachment_list -> clear ( ) ; $ this -> nb_attachment_list -> merge ( CNabuIContactProspectAttachment :: getAttachmentsForProspect ( $ this ) ) ; } return $ this -> nb_attachment_list ; }
Get the list of all attachments associated with this instance.
@param bool $force If true then force to refresh list from the database storage.
@return CNabuIContactProspectAttachmentList Returns a list with attachments found.
Get the list of all attachments associated with this instance .