types
3 months ago
class-group-ad-relation.php
3 months ago
class-group-factory.php
1 day ago
class-group-ordered.php
1 year ago
class-group-repository.php
1 day ago
class-group-slider.php
4 months ago
class-group-standard.php
1 year ago
class-group-types.php
1 year ago
class-groups.php
1 year ago
index.php
1 year ago
class-groups.php
55 lines
| 1 | <?php |
| 2 | /** |
| 3 | * This class is responsible to hold all the Groups functionality. |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * @author Advanced Ads <info@wpadvancedads.com> |
| 7 | * @since 1.47.0 |
| 8 | */ |
| 9 | |
| 10 | namespace AdvancedAds\Groups; |
| 11 | |
| 12 | use AdvancedAds\Framework\Interfaces\Initializer_Interface; |
| 13 | |
| 14 | defined( 'ABSPATH' ) || exit; |
| 15 | |
| 16 | /** |
| 17 | * Groups. |
| 18 | */ |
| 19 | class Groups implements Initializer_Interface { |
| 20 | |
| 21 | /** |
| 22 | * Hold factory instance |
| 23 | * |
| 24 | * @var Group_Factory |
| 25 | */ |
| 26 | public $factory = null; |
| 27 | |
| 28 | /** |
| 29 | * Hold repository instance |
| 30 | * |
| 31 | * @var Group_Repository |
| 32 | */ |
| 33 | public $repository = null; |
| 34 | |
| 35 | /** |
| 36 | * Hold types manager |
| 37 | * |
| 38 | * @var Group_Types |
| 39 | */ |
| 40 | public $types = null; |
| 41 | |
| 42 | /** |
| 43 | * Runs this initializer. |
| 44 | * |
| 45 | * @return void |
| 46 | */ |
| 47 | public function initialize(): void { |
| 48 | $this->factory = new Group_Factory(); |
| 49 | $this->types = new Group_Types(); |
| 50 | $this->repository = new Group_Repository(); |
| 51 | |
| 52 | $this->types->hooks(); |
| 53 | } |
| 54 | } |
| 55 |