Files
BeSimpleSoap/src/BeSimple/SoapServer/Tests/Attachment/AttachmentCollection.php
2017-02-14 16:01:39 +01:00

22 lines
408 B
PHP

<?php
namespace BeSimple\SoapServer\Tests\Attachment;
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;
}
}