private function setTokens(array $tokens) { foreach ($tokens as $propertyName => $propertyValue) { if (property_exists($this, $propertyName)) { $this->{$propertyName} = $propertyValue; } } }