/** * Returns the name of the file e.g. test.xml. * * @access public * @author Jerome Bogaerts <*****@*****.**> * @return string */ public function getName() { $returnValue = (string) ''; if (!empty($this->file) && empty($this->name)) { // collect information about the file instance itself. $this->name = $this->file->getLabel(); } $returnValue = $this->name; return (string) $returnValue; }