| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\Components; |
| 4 |
|
| 5 |
use Elementor\Core\Utils\Collection; |
| 6 |
|
| 7 |
if ( ! defined( 'ABSPATH' ) ) { |
| 8 |
exit; // Exit if accessed directly. |
| 9 |
} |
| 10 |
|
| 11 |
class Components { |
| 12 |
private Collection $components; |
| 13 |
|
| 14 |
public static function make( array $components = [] ) { |
| 15 |
return new static( $components ); |
| 16 |
} |
| 17 |
|
| 18 |
private function __construct( array $components = [] ) { |
| 19 |
$this->components = Collection::make( $components ); |
| 20 |
} |
| 21 |
|
| 22 |
public function get_components() { |
| 23 |
return $this->components; |
| 24 |
} |
| 25 |
} |
| 26 |
|