1 | <?php |
||
18 | class ProfileManager |
||
19 | { |
||
20 | /** |
||
21 | * Elasticsearch manager |
||
22 | * |
||
23 | * @var Manager |
||
24 | */ |
||
25 | private $manager; |
||
26 | |||
27 | /** |
||
28 | * ProfileFinder constructor. |
||
29 | * |
||
30 | * @param Manager $manager |
||
31 | */ |
||
32 | public function __construct(Manager $manager) |
||
36 | |||
37 | /** |
||
38 | * Finds all profiles |
||
39 | * |
||
40 | * @returns array |
||
41 | */ |
||
42 | public function getAllProfiles() |
||
49 | |||
50 | /** |
||
51 | * Creates a new profile |
||
52 | * |
||
53 | * @param string $name |
||
54 | * @param string $description |
||
55 | * @param string $id |
||
56 | */ |
||
57 | public function createProfile($name, $description, $id = '') |
||
70 | } |
||
71 |