script/todo.php
private function addOutput(string $key, string $value = null)
    {
        if (!array_key_exists($key, $this->output)) {
            $this->output[$key] = [];
        }

        $this->output[$key][] = $value;
    }
private function addOutput(string $key, string $value = null)
    {
        if (!array_key_exists($key, $this->output)) {
            $this->output[$key] = [];
        }

        $this->output[$key][] = $value;
    }
private function addOutput ( string $ key , string $ value = null ) { if ( ! array_key_exists ( $ key , $ this -> output ) ) { $ this -> output [ $ key ] = [ ] ; } $ this -> output [ $ key ] [ ] = $ value ; }
Adding elements to the resulting array.

@param string      $key
@param string|null $value
Adding elements to the resulting array .