17 lines
334 B
PHP
17 lines
334 B
PHP
<?php
|
|
|
|
namespace Fixtures\Attachment;
|
|
|
|
trait MessageWithAttachmentsTrait
|
|
{
|
|
/**
|
|
* @var AttachmentCollection $attachmentCollection
|
|
*/
|
|
public $attachmentCollection;
|
|
|
|
public function hasAttachments()
|
|
{
|
|
return $this->attachmentCollection !== null && $this->attachmentCollection->hasAttachments();
|
|
}
|
|
}
|