예제 #1
0
파일: Xml.php 프로젝트: cpapdotcom/asendia
 /**
  * @param Manifest $manifest
  * @param string $rootElementName
  *
  * @return SimpleXMLElement
  */
 public static function fromManifest(Manifest $manifest, $rootElementName = 'BwwManifest')
 {
     return static::fromProperties($manifest->getProperties(), $rootElementName);
 }
예제 #2
0
 /**
  * @param string $accountNumber
  * @param string $companyName
  *
  * @return Manifest\Manifest
  */
 public static function createManifestForAccount($accountNumber, $companyName, DateTime $timeStamp = null)
 {
     return Manifest\Manifest::create($accountNumber, $companyName, $timeStamp);
 }