Newscoop\NewscoopBundle\Services\SystemPreferencesService::__get PHP Method

__get() public method

Magic function to get property value
public __get ( $property ) : string | null
$property Given property
return string | null
    public function __get($property)
    {
        $currentProperty = $this->findOneBy($property);
        if (!empty($currentProperty)) {
            $currentProperty = reset($currentProperty);
            return $currentProperty['value'];
        }
    }