interfaces
2 years ago
repository-aborts-trait.php
2 years ago
repository-dynamic-items-it.php
2 years ago
repository-item-dynamic-id.php
2 years ago
repository-item-instance-trait.php
2 years ago
repository-item-with-class.php
2 years ago
repository-pattern-trait.php
2 years ago
repository-static-item-it.php
2 years ago
repository-item-dynamic-id.php
23 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | namespace JFB_Components\Repository; |
| 5 | |
| 6 | // If this file is called directly, abort. |
| 7 | if ( ! defined( 'WPINC' ) ) { |
| 8 | die; |
| 9 | } |
| 10 | |
| 11 | interface Repository_Item_Dynamic_Id { |
| 12 | |
| 13 | /** |
| 14 | * @return string|false |
| 15 | */ |
| 16 | public function create_dynamic_id( string $name ); |
| 17 | |
| 18 | public function get_dynamic_id(): string; |
| 19 | |
| 20 | public function set_dynamic_id( string $id ); |
| 21 | |
| 22 | } |
| 23 |