Site.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AC\Plugin\Updater; |
| 4 | |
| 5 | use AC\Plugin; |
| 6 | use AC\Plugin\Updater; |
| 7 | |
| 8 | class Site extends Updater { |
| 9 | |
| 10 | /** |
| 11 | * @var Plugin |
| 12 | */ |
| 13 | protected $plugin; |
| 14 | |
| 15 | /** |
| 16 | * @param Plugin $plugin |
| 17 | */ |
| 18 | public function __construct( Plugin $plugin ) { |
| 19 | $this->plugin = $plugin; |
| 20 | } |
| 21 | |
| 22 | protected function update_stored_version( $version = null ) { |
| 23 | $this->plugin->update_stored_version( $version ); |
| 24 | } |
| 25 | |
| 26 | protected function is_new_install() { |
| 27 | return $this->plugin->is_new_install(); |
| 28 | } |
| 29 | |
| 30 | } |