SoapClient large refactoring & tests update
This commit is contained in:
@ -0,0 +1,21 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user