<?php class Factory { private $subFactories; public function create(Input $input) : Output { $output = null; foreach ($this->subFactories as $subFactory) { if ($subFactory->tryCreate($input, $output)) { return $output; } } throw new RuntimeException(); } } abstract class SubFactory { abstract function tryCreate(Input $input, Output &$output = null) : bool; }
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`