Add isNegative() to the Type\NumberInterface

This commit is contained in:
Ben Ramsey
2020-03-06 16:59:04 -06:00
parent b31703e7c9
commit 8a8d5d4ba8
7 changed files with 103 additions and 27 deletions
-25
View File
@@ -1,25 +0,0 @@
.. _reference.references:
==========
References
==========
.. [DCE11SEC] Open Group. (1997). *DCE 1.1: Authentication and Security Services*
(Document No. C311). Retrieved from https://publications.opengroup.org/c311
.. [RFC4122] Leach, P., Mealling, M., & Salz, R. (2005, July). A universally
unique identifier (UUID) URN namespace. *Internet Requests for Comments*
(RFC 4122). RFC Editor. Retrieved from https://www.rfc-editor.org/rfc/rfc4122.html
.. [UUIDV6] Peabody, B. (2020, February 24). UUID format update. *Internet
Drafts* (draft-peabody-dispatch-new-uuid-format-00). Working Draft, IETF
Secretariat. Retrieved from
https://tools.ietf.org/html/draft-peabody-dispatch-new-uuid-format-00
.. [RFC1321] Rivest, R. (1992, April). The MD5 message-digest algorithm.
*Internet Requests for Comments* (RFC 1321). RFC Editor. Retrieved from
https://www.rfc-editor.org/rfc/rfc1321.html
.. [SHA1] U.S. Department of Commerce, National Institute of Standards and
Technology. (2015). *Secure Hash Standard (SHS)* (FIPS PUB 180-4). Retrieved
from http://dx.doi.org/10.6028/NIST.FIPS.180-4
+5
View File
@@ -26,6 +26,11 @@ Types
NumberInterface ensures consistency in numeric values returned by ramsey/uuid.
.. php:method:: isNegative()
:returns: True if this number is less than zero, false otherwise.
:returntype: ``bool``
.. php:class:: Decimal
Implements :php:interface:`Ramsey\\Uuid\\Type\\NumberInterface`.