Loading docs/clocks.rst +9 −10 Original line number Diff line number Diff line Loading @@ -160,9 +160,8 @@ A clock that returns any time generated by a closure:: $clock->now(); // whatever callback returns .. note:: You can do a similar logic without any library by using an anonymous class: :: .. note:: You can do a similar logic without any library by using an anonymous class:: <?php Loading docs/index.rst +10 −0 Original line number Diff line number Diff line Loading @@ -10,10 +10,18 @@ A collection of clock abstraction classes for PSR-20_. Installation ============ PHP 8.0+: .. code-block:: bash composer require 'arokettu/clock' PHP 7.0+: .. code-block:: bash composer require 'arokettu/clock:^1' or if you only need :ref:`the system clock <system_clock_package>`: .. code-block:: bash Loading @@ -23,6 +31,8 @@ or if you only need :ref:`the system clock <system_clock_package>`: Documentation ============= This documentation covers both 1.x and 2.x branches. .. toctree:: :maxdepth: 2 Loading Loading
docs/clocks.rst +9 −10 Original line number Diff line number Diff line Loading @@ -160,9 +160,8 @@ A clock that returns any time generated by a closure:: $clock->now(); // whatever callback returns .. note:: You can do a similar logic without any library by using an anonymous class: :: .. note:: You can do a similar logic without any library by using an anonymous class:: <?php Loading
docs/index.rst +10 −0 Original line number Diff line number Diff line Loading @@ -10,10 +10,18 @@ A collection of clock abstraction classes for PSR-20_. Installation ============ PHP 8.0+: .. code-block:: bash composer require 'arokettu/clock' PHP 7.0+: .. code-block:: bash composer require 'arokettu/clock:^1' or if you only need :ref:`the system clock <system_clock_package>`: .. code-block:: bash Loading @@ -23,6 +31,8 @@ or if you only need :ref:`the system clock <system_clock_package>`: Documentation ============= This documentation covers both 1.x and 2.x branches. .. toctree:: :maxdepth: 2 Loading