1
|
|
|
<?php |
2
|
|
|
namespace TildBJ\Seeder; |
3
|
|
|
|
4
|
|
|
/*************************************************************** |
5
|
|
|
* Copyright notice |
6
|
|
|
* |
7
|
|
|
* (c) 2016 Dennis Römmich <[email protected]> |
8
|
|
|
* |
9
|
|
|
* All rights reserved |
10
|
|
|
* |
11
|
|
|
* This script is part of the TYPO3 project. The TYPO3 project is |
12
|
|
|
* free software; you can redistribute it and/or modify |
13
|
|
|
* it under the terms of the GNU General Public License as published by |
14
|
|
|
* the Free Software Foundation; either version 2 of the License, or |
15
|
|
|
* (at your option) any later version. |
16
|
|
|
* |
17
|
|
|
* The GNU General Public License can be found at |
18
|
|
|
* http://www.gnu.org/copyleft/gpl.html. |
19
|
|
|
* |
20
|
|
|
* This script is distributed in the hope that it will be useful, |
21
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
22
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
23
|
|
|
* GNU General Public License for more details. |
24
|
|
|
* |
25
|
|
|
* This copyright notice MUST APPEAR in all copies of the script! |
26
|
|
|
***************************************************************/ |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* SeedCollection |
30
|
|
|
* |
31
|
|
|
* @author Dennis Römmich<[email protected]> |
32
|
|
|
* @copyright Copyright belongs to the respective authors |
33
|
|
|
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later |
34
|
|
|
*/ |
35
|
|
|
interface SeedCollection extends \Iterator, \Countable, \TYPO3\CMS\Core\SingletonInterface |
|
|
|
|
36
|
|
|
{ |
37
|
|
|
/** |
38
|
|
|
* each |
39
|
|
|
* |
40
|
|
|
* @param callable $function |
41
|
|
|
* @return $this |
42
|
|
|
*/ |
43
|
|
|
public function each(callable $function); |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* attach |
47
|
|
|
* |
48
|
|
|
* @param Seed $seed |
49
|
|
|
* @return void |
50
|
|
|
*/ |
51
|
|
|
public function attach(Seed $seed); |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* detach |
55
|
|
|
* |
56
|
|
|
* @param string $key |
57
|
|
|
* @return void |
58
|
|
|
*/ |
59
|
|
|
public function detach($key); |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* @return array |
63
|
|
|
*/ |
64
|
|
|
public function toArray(); |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* @param Seeder $seeder |
68
|
|
|
* @return array |
69
|
|
|
*/ |
70
|
|
|
public function get(Seeder $seeder); |
71
|
|
|
|
72
|
|
|
/** |
73
|
|
|
* @param string $name |
74
|
|
|
* @return int |
75
|
|
|
*/ |
76
|
|
|
public function countByName($name); |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @return void |
80
|
|
|
*/ |
81
|
|
|
public function clear(); |
82
|
|
|
} |
83
|
|
|
|
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.