Projekt

Obecné

Profil

Stáhnout (418 Bajtů) Statistiky
| Větev: | Revize:
1
<?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

    
21
    public function setName(string $name) {
22
        $this->name = $name;
23
    }
24

    
25
    public function getName(): string {
26
        return $this->name;
27
    }
28
}
(2-2/2)