/** * This constructor initializes the class with the specified resource. * * @access public * @param IO\File $file the file to be processed * @param array $metadata the metadata to be set */ public function __construct(IO\File $file, array $metadata = array()) { parent::__construct($file, $metadata); $this->metadata = array_merge(array('namespace' => array('prefix' => 'soap', 'uri' => SOAP\Data\XML::DEFAULT_NAMESPACE)), $metadata); $this->directives = new Common\Mutable\HashMap(); if (array_key_exists('expandableProperties', $metadata)) { $this->setExpandableProperties(new Common\HashSet($metadata['expandableProperties'])); } }