aswi2020sebela-gitlab/website/src/Document/Test.php @ ded3088b
1 | 1cfcde53 | Tomáš Ballák | <?php
|
---|---|---|---|
2 | |||
3 | namespace App\Document; |
||
4 | |||
5 | use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB; |
||
6 | |||
7 | /**
|
||
8 | * @MongoDB\Document
|
||
9 | */
|
||
10 | class Test { |
||
11 | /**
|
||
12 | * @MongoDB\Id
|
||
13 | */
|
||
14 | protected $id; |
||
15 | |||
16 | /**
|
||
17 | * @MongoDB\Field(type="string")
|
||
18 | */
|
||
19 | protected $name; |
||
20 | 343d66a7 | Tomáš Ballák | |
21 | public function setName(string $name) { |
||
22 | $this->name = $name; |
||
23 | }
|
||
24 | |||
25 | public function getName(): string { |
||
26 | return $this->name; |
||
27 | }
|
||
28 | 1cfcde53 | Tomáš Ballák | }
|