| 1 |
<?php |
| 2 |
|
| 3 |
namespace Elementor\Modules\Mcp\Abilities\Appliers\V3\Serializer; |
| 4 |
|
| 5 |
if ( ! defined( 'ABSPATH' ) ) { |
| 6 |
exit; |
| 7 |
} |
| 8 |
|
| 9 |
/** |
| 10 |
* Registration-order iterator of {@see V3_Property_Serializer}. Inverse of |
| 11 |
* {@see \Elementor\Modules\Mcp\Abilities\Appliers\V3\Converter\V3_Converter_Registry}. |
| 12 |
*/ |
| 13 |
class V3_Serializer_Registry { |
| 14 |
|
| 15 |
/** @var V3_Property_Serializer[] */ |
| 16 |
private array $serializers = []; |
| 17 |
|
| 18 |
public function register( V3_Property_Serializer $serializer ): self { |
| 19 |
$this->serializers[] = $serializer; |
| 20 |
|
| 21 |
return $this; |
| 22 |
} |
| 23 |
|
| 24 |
/** |
| 25 |
* @return V3_Property_Serializer[] |
| 26 |
*/ |
| 27 |
public function all(): array { |
| 28 |
return $this->serializers; |
| 29 |
} |
| 30 |
} |
| 31 |
|