Total Lines | 21 |
Duplicated Lines | 0 % |
1 | <?php |
||
5 | interface StructureInterface extends |
||
|
|||
6 | \ArrayAccess, |
||
7 | \Countable, |
||
8 | \Iterator, |
||
9 | \JsonSerializable, |
||
10 | \Serializable |
||
11 | { |
||
12 | /** |
||
13 | * Check if given structure is the same as this structure. |
||
14 | * |
||
15 | * @return boolean |
||
16 | */ |
||
17 | public function isSimilar(StructureInterface $target); |
||
18 | |||
19 | /** |
||
20 | * Get an array copy of the current structure. |
||
21 | * |
||
22 | * @return array |
||
23 | */ |
||
24 | public function toArray(); |
||
25 | } |
||
26 |