Alex\BehatLauncher\Behat\OutputFileList::get PHP Метод

get() публичный Метод

Returns an output file, given his name.
public get ( $format )
    public function get($format)
    {
        if (!isset($this->files[$format])) {
            return $this->files[$format] = new OutputFile();
        }
        return $this->files[$format];
    }

Usage Example

 private function loadOutputFiles(OutputFileList $list, array $ids)
 {
     foreach ($ids as $format => $id) {
         $path = $this->getOutputFilePath($id);
         $list->get($format)->setPath($path)->setId($id);
     }
 }