public function addPropertiesThatShouldBeAvailableClientSide(array $propertyNames) { foreach ($propertyNames as $propertyName) { $this->clientSideProperties[] = $propertyName; } }