SoapClient large refactoring & tests update
This commit is contained in:
34
src/BeSimple/SoapCommon/Mime/Parser/ParsedPart.php
Normal file
34
src/BeSimple/SoapCommon/Mime/Parser/ParsedPart.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace BeSimple\SoapCommon\Mime\Parser;
|
||||
|
||||
use BeSimple\SoapCommon\Mime\Part;
|
||||
|
||||
class ParsedPart
|
||||
{
|
||||
const PART_IS_MAIN = true;
|
||||
const PART_IS_NOT_MAIN = false;
|
||||
|
||||
private $part;
|
||||
private $isMain;
|
||||
|
||||
/**
|
||||
* @param Part $part
|
||||
* @param bool $isMain
|
||||
*/
|
||||
public function __construct(Part $part, $isMain)
|
||||
{
|
||||
$this->part = $part;
|
||||
$this->isMain = $isMain;
|
||||
}
|
||||
|
||||
public function getPart()
|
||||
{
|
||||
return $this->part;
|
||||
}
|
||||
|
||||
public function isMain()
|
||||
{
|
||||
return $this->isMain;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user