File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?php
22/*
33 Author: Irfa Ardiansyah <irfa.backend@protonmail.com>
4- version: 1.0
4+ version: 1.1
55 https://github.com/irfaardy/php-hari-libur
66*/
77namespace Irfa \HariLibur \Core ;
Original file line number Diff line number Diff line change 11<?php
22/*
33 Author: Irfa Ardiansyah <irfa.backend@protonmail.com>
4- version: 1.0
4+ version: 1.1
55 https://github.com/irfaardy/php-hari-libur
66*/
77namespace Irfa \HariLibur \Core ;
Original file line number Diff line number Diff line change 11<?php
22/*
33 Author: Irfa Ardiansyah <irfa.backend@protonmail.com>
4- version: 1.0
4+ version: 1.1
55 https://github.com/irfaardy/php-hari-libur
66*/
77namespace Irfa \HariLibur \Facades ;
Original file line number Diff line number Diff line change 11<?php
22/*
33 Author: Irfa Ardiansyah <irfa.backend@protonmail.com>
4- version: 1.0
4+ version: 1.1
55 https://github.com/irfaardy/php-hari-libur
66*/
77namespace Irfa \HariLibur \Func ;
@@ -89,16 +89,29 @@ public function region($region)
8989 $ this ->setRegion ($ region );
9090 return $ this ;
9191 }
92+
93+ /**
94+ * Method ini berfungsi untuk menampilkan data libur sebelum tanggal yang telah di atur di parameter date.
95+ *
96+ * @return object
97+ */
9298 public function nextHoliday ()
9399 {
94100 $ next = $ this ->getnextHolidays ($ this ->date );
95101 return $ next ;
96102 }
103+
104+ /**
105+ * Method ini berfungsi untuk menampilkan data libur setelah tanggal yang telah di atur di parameter date.
106+ *
107+ * @return object
108+ */
97109 public function prevHoliday ()
98110 {
99111 $ prev = $ this ->getPrevHolidays ($ this ->date );
100112 return $ prev ;
101113 }
114+
102115 /**
103116 * Method ini berfungsi untuk mengecek tanggal sudah diisi apa belum
104117 *
You can’t perform that action at this time.
0 commit comments