@@ 91-100 (lines=10) @@ | ||
88 | /** |
|
89 | * @return Repository |
|
90 | */ |
|
91 | public function enable(): Repository |
|
92 | { |
|
93 | return $this->wait( |
|
94 | $this->handleCommand( |
|
95 | new BuildAsyncFromSyncCommand(self::HYDRATE_CLASS, $this) |
|
96 | )->then(function (RepositoryInterface $repository) { |
|
97 | return $repository->enable(); |
|
98 | }) |
|
99 | ); |
|
100 | } |
|
101 | ||
102 | /** |
|
103 | * @return Repository |
|
@@ 105-114 (lines=10) @@ | ||
102 | /** |
|
103 | * @return Repository |
|
104 | */ |
|
105 | public function disable(): Repository |
|
106 | { |
|
107 | return $this->wait( |
|
108 | $this->handleCommand( |
|
109 | new BuildAsyncFromSyncCommand(self::HYDRATE_CLASS, $this) |
|
110 | )->then(function (RepositoryInterface $repository) { |
|
111 | return $repository->disable(); |
|
112 | }) |
|
113 | ); |
|
114 | } |
|
115 | ||
116 | /** |
|
117 | * @return array |
|
@@ 175-184 (lines=10) @@ | ||
172 | /** |
|
173 | * @return Repository |
|
174 | */ |
|
175 | public function refresh(): Repository |
|
176 | { |
|
177 | return $this->wait( |
|
178 | $this->handleCommand( |
|
179 | new BuildAsyncFromSyncCommand(self::HYDRATE_CLASS, $this) |
|
180 | )->then(function (RepositoryInterface $repository) { |
|
181 | return $repository->refresh(); |
|
182 | }) |
|
183 | ); |
|
184 | } |
|
185 | } |
|
186 |