| 1 | <?php |
||
| 17 | class DiscoverOptions |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Default maximum wait time (seconds to delay response) |
||
| 21 | */ |
||
| 22 | const DEFAULT_MAXIMUM_WAIT_TIME = 1; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Default search target |
||
| 26 | */ |
||
| 27 | const DEFAULT_SEARCH_TARGET = 'ssdp:all'; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var int |
||
| 31 | */ |
||
| 32 | protected $maximumWaitTime; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var SearchTarget |
||
| 36 | */ |
||
| 37 | protected $searchTarget; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Get maximum wait time |
||
| 41 | * |
||
| 42 | * @return int |
||
| 43 | */ |
||
| 44 | public function getMaximumWaitTime() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Set maximum wait time |
||
| 55 | * |
||
| 56 | * @param int $maximumWaitTime |
||
| 57 | * |
||
| 58 | * @return $this |
||
| 59 | */ |
||
| 60 | public function setMaximumWaitTime($maximumWaitTime) |
||
| 65 | |||
| 66 | /** |
||
| 67 | * Get search target |
||
| 68 | * |
||
| 69 | * @return SearchTarget |
||
| 70 | */ |
||
| 71 | public function getSearchTarget() |
||
| 79 | |||
| 80 | /** |
||
| 81 | * Set search target |
||
| 82 | * |
||
| 83 | * @param SearchTarget $searchTarget |
||
| 84 | * |
||
| 85 | * @return $this |
||
| 86 | */ |
||
| 87 | public function setSearchTarget(SearchTarget $searchTarget) |
||
| 92 | } |
||
| 93 |