Cml\Console\Commands\Migrate\Breakpoint::execute PHP Метод

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

Toggle the breakpoint.
public execute ( array $args, array $options = [] )
$args array 参数
$options array 选项
    public function execute(array $args, array $options = [])
    {
        $this->bootstrap($args, $options);
        $version = isset($options['target']) ? $options['target'] : $options['t'];
        $removeAll = isset($options['remove-all']) ? $options['remove-all'] : $options['r'];
        if ($version && $removeAll) {
            throw new \InvalidArgumentException('Cannot toggle a breakpoint and remove all breakpoints at the same time.');
        }
        // Remove all breakpoints
        if ($removeAll) {
            $this->getManager()->removeBreakpoints();
        } else {
            // Toggle the breakpoint.
            $this->getManager()->toggleBreakpoint($version);
        }
    }
Breakpoint