public function targets(): Targets
    {
        if (!isset($this->_merged)) {
            $a = array();
            foreach ($this->_targets as $targets) {
                $a = array_merge($a, $targets->all());
            }
            $this->_merged = new Targets(...$a);
        }
        return $this->_merged;
    }
public function targets(): Targets
    {
        if (!isset($this->_merged)) {
            $a = array();
            foreach ($this->_targets as $targets) {
                $a = array_merge($a, $targets->all());
            }
            $this->_merged = new Targets(...$a);
        }
        return $this->_merged;
    }
public function targets ( ) : Targets { if ( ! isset ( $ this -> _merged ) ) { $ a = array ( ) ; foreach ( $ this -> _targets as $ targets ) { $ a = array_merge ( $ a , $ targets -> all ( ) ) ; } $ this -> _merged = new Targets ( ... $ a ) ; } return $ this -> _merged ; }
Get all targets.

@return Targets
Get all targets .