src/main/php/Properties.php
public function section(string $section, array $default = []): array
    {
        if (isset($this->propertyData[$section])) {
            return $this->propertyData[$section];
        }

        return $default;
    }
public function section(string $section, array $default = []): array
    {
        if (isset($this->propertyData[$section])) {
            return $this->propertyData[$section];
        }

        return $default;
    }
public function section ( string $ section , array $ default = [ ] ) : array { if ( isset ( $ this -> propertyData [ $ section ] ) ) { return $ this -> propertyData [ $ section ] ; } return $ default ; }
returns a whole section if it exists or the default if the section does not exist

@api
@param   string  $section  name of the section
@param   array   $default  value to return if section does not exist
@return  scalar[]
@since   4.0.0
returns a whole section if it exists or the default if the section does not exist