| 1 | <?php |
||
| 10 | final class SelfDescription implements CreatableFromArray |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | private $profiles; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | private $strongDescription; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var array |
||
| 24 | */ |
||
| 25 | private $weakDescription; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param array $profiles |
||
| 29 | * @param array $strongDescription |
||
| 30 | * @param array $weakDescription |
||
| 31 | */ |
||
| 32 | public function __construct(array $profiles, array $strongDescription, array $weakDescription) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param array $data |
||
| 41 | * |
||
| 42 | * @return |
||
| 43 | */ |
||
| 44 | public static function createFromArray(array $data) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @return array |
||
| 55 | */ |
||
| 56 | public function getProfiles() |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return array |
||
| 63 | */ |
||
| 64 | public function getStrongDescription() |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @return array |
||
| 71 | */ |
||
| 72 | public function getWeakDescription() |
||
| 76 | } |
||
| 77 |