Skip to content
Snippets Groups Projects

Feature/factory

Merged Krzysztof Dyszczyk requested to merge feature/factory into master
All threads resolved!
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
+ 3
2
@@ -45,14 +45,15 @@ require_once('/path/to/notice/src/init.php');
Simple usage looks like:
```php
$notice = WPDeskNotice('Notice text goes here');
$notice = wpdesk_notice('Notice text goes here');
// Is equivalent to:
$notice = WPDeskNotice('Notice text goes here');
// Is equivalent to:
$notice = \WPDesk\Notice\Factory::notice('Notice text goes here');
// Is equivalent to:
$notice = new \WPDesk\Notice\Notice('Notice text goes here');
```
Loading