public function validateRegion()
    {
        if (! in_array($this->region, $this->regions)) {
            return self::REGION_DEFUALT;
        }

        return $this->region;
    }
public function validateRegion()
    {
        if (! in_array($this->region, $this->regions)) {
            return self::REGION_DEFUALT;
        }

        return $this->region;
    }
public function validateRegion ( ) { if ( ! in_array ( $ this -> region , $ this -> regions ) ) { return self :: REGION_DEFUALT ; } return $ this -> region ; }
Validates the specified region.

@return string Returns the region if it is valid or default.

@see self::REGION_DEFAULT The default region.
Validates the specified region .