mpyw\Co\Internal\CoOption::reconfigure PHP Метод

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

Reconfigure to get new instance.
public reconfigure ( array $options ) : CoOption
$options array
Результат CoOption
    public function reconfigure(array $options)
    {
        return new self($options + $this->options);
    }

Usage Example

Пример #1
0
 public function testReconfigure()
 {
     $options = new CoOption();
     $new_options = $options->reconfigure(['pipeline' => true]);
     $this->assertTrue($new_options['pipeline']);
     $this->assertNotEquals($new_options, $options);
 }