protected function _allOfType(int $type): array
    {
        return array_values(
            array_filter($this->_targets,
                function (Target $target) use ($type) {
                    return $target->type() == $type;
                }));
    }
protected function _allOfType(int $type): array
    {
        return array_values(
            array_filter($this->_targets,
                function (Target $target) use ($type) {
                    return $target->type() == $type;
                }));
    }
protected function _allOfType ( int $ type ) : array { return array_values ( array_filter ( $ this -> _targets , function ( Target $ target ) use ( $ type ) { return $ target -> type ( ) == $ type ; } ) ) ; }
Get all targets of given type.

@param int $type
@return Target[]
Get all targets of given type .