exceptions
3 years ago
form-record
3 years ago
post-modification
3 years ago
update-user
3 years ago
abstract-modifier.php
3 years ago
base-modifier-action.php
3 years ago
base-object-property.php
3 years ago
object-dynamic-property.php
3 years ago
object-properties-collection.php
3 years ago
object-properties-collection.php
21 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace Jet_Form_Builder\Actions\Methods; |
| 5 | |
| 6 | |
| 7 | use Jet_Form_Builder\Classes\Arrayable\Array_Tools; |
| 8 | use Jet_Form_Builder\Classes\Arrayable\Collection; |
| 9 | |
| 10 | class Object_Properties_Collection extends Collection { |
| 11 | |
| 12 | public function get_dynamic(): \Generator { |
| 13 | foreach ( Array_Tools::reverse( $this ) as $current ) { |
| 14 | if ( ! is_a( $current, Object_Dynamic_Property::class ) ) { |
| 15 | continue; |
| 16 | } |
| 17 | yield $current; |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | } |