Model/RegionTrait.php
private function getRegionZonesByTypeName($typeName)
    {
        return $this->getRegionZones()->filter(
            function($regionZone) use ($typeName) {
                return $regionZone->getType()->getName() === $typeName;
            }
        );
    }
private function getRegionZonesByTypeName($typeName)
    {
        return $this->getRegionZones()->filter(
            function($regionZone) use ($typeName) {
                return $regionZone->getType()->getName() === $typeName;
            }
        );
    }
private function getRegionZonesByTypeName ( $ typeName ) { return $ this -> getRegionZones ( ) -> filter ( function ( $ regionZone ) use ( $ typeName ) { return $ regionZone -> getType ( ) -> getName ( ) === $ typeName ; } ) ; }
Returns all the RegionZones of given type that the Region is attached to

@return ArrayCollection<RegionZone>
Returns all the RegionZones of given type that the Region is attached to