2017-02-03 15:22:37 +01:00
|
|
|
<?php
|
|
|
|
|
2017-03-15 10:25:48 +01:00
|
|
|
namespace Fixtures\Attachment;
|
2017-02-03 15:22:37 +01:00
|
|
|
|
|
|
|
class AttachmentCollection
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var Attachment[] $attachments
|
|
|
|
*/
|
|
|
|
public $attachments;
|
|
|
|
|
|
|
|
public function __construct(array $attachments = null)
|
|
|
|
{
|
|
|
|
$this->attachments = $attachments;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function hasAttachments()
|
|
|
|
{
|
|
|
|
return $this->attachments !== null && count($this->attachments) > 0;
|
|
|
|
}
|
|
|
|
}
|