Nette Documentation Preview

syntax
Static Classes
**************

.[perex]
StaticClass is used to denote static classes.


Installation:

```shell
composer require nette/utils
```

Static classes, i.e. classes that are not intended to be instantiated, can be marked with the trait [api:Nette\StaticClass]:

```php
class Strings
{
	use Nette\StaticClass;
}
```

Static Classes

StaticClass is used to denote static classes.

Installation:

composer require nette/utils

Static classes, i.e. classes that are not intended to be instantiated, can be marked with the trait Nette\StaticClass:

class Strings
{
	use Nette\StaticClass;
}