| 1 | <?php | ||
| 21 | class TargetDocument extends AbstractDocument | ||
| 22 | { | ||
| 23 | /** | ||
| 24 | * target | ||
| 25 | * @var string $target | ||
| 26 | */ | ||
| 27 | protected $target = null; | ||
| 28 | |||
| 29 | /** | ||
| 30 | * weight | ||
| 31 | * @var int $weight | ||
| 32 | */ | ||
| 33 | protected $weight = 100; | ||
| 34 | |||
| 35 | /** | ||
| 36 | * set target | ||
| 37 | * | ||
| 38 | * @param string $target | ||
| 39 | * | ||
| 40 | * @return this | ||
| 41 | */ | ||
| 42 | 1 | public function setTarget(string $target): self | |
| 48 | |||
| 49 | /** | ||
| 50 | * get target | ||
| 51 | * | ||
| 52 | * @return string | ||
| 53 | */ | ||
| 54 | 1 | public function getTarget(): string | |
| 58 | |||
| 59 | /** | ||
| 60 | * set weight | ||
| 61 | * | ||
| 62 | * @param int $weight | ||
| 63 | * | ||
| 64 | * @return this | ||
| 65 | */ | ||
| 66 | 1 | public function setWeight(int $weight): self | |
| 72 | |||
| 73 | /** | ||
| 74 | * get weight | ||
| 75 | * | ||
| 76 | * @return int | ||
| 77 | */ | ||
| 78 | 1 | public function getWeight(): int | |
| 82 | |||
| 83 | /** | ||
| 84 | * get fields | ||
| 85 | * | ||
| 86 | * @return array | ||
| 87 | */ | ||
| 88 | 2 | protected function getFields(): array | |
| 95 | } | ||
| 96 |