public function getProperties($requestedProperties)
    {
        $newProperties = [];
        foreach ($requestedProperties as $propName) {
            if (isset($this->principalProperties[$propName])) {
                $newProperties[$propName] = $this->principalProperties[$propName];
            }
        }

        return $newProperties;
    }
public function getProperties($requestedProperties)
    {
        $newProperties = [];
        foreach ($requestedProperties as $propName) {
            if (isset($this->principalProperties[$propName])) {
                $newProperties[$propName] = $this->principalProperties[$propName];
            }
        }

        return $newProperties;
    }
public function getProperties ( $ requestedProperties ) { $ newProperties = [ ] ; foreach ( $ requestedProperties as $ propName ) { if ( isset ( $ this -> principalProperties [ $ propName ] ) ) { $ newProperties [ $ propName ] = $ this -> principalProperties [ $ propName ] ; } } return $ newProperties ; }
Returns a list of properties.

@param array $requestedProperties

@return array
Returns a list of properties .