diff --git a/README.md b/README.md index fcf8794..abf81ce 100644 --- a/README.md +++ b/README.md @@ -13,5 +13,11 @@ composer require jrosset/commandline ```php cpt; + } + public function increment (): void { + $this->cpt++; + } +} + +var_dump(Test::getInstance()->getCpt()); +Test::getInstance()->increment(); +var_dump(Test::getInstance()->getCpt());