MongoTimestamp.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /*
  3. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  4. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  5. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  6. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  7. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  8. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  9. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  10. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  11. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  12. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  13. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  14. */
  15. class MongoTimestamp {
  16. /**
  17. * @link http://php.net/manual/en/class.mongotimestamp.php#mongotimestamp.props.sec
  18. * @var $sec
  19. */
  20. public $sec;
  21. /**
  22. * @link http://php.net/manual/en/class.mongotimestamp.php#mongotimestamp.props.inc
  23. * @var $inc
  24. */
  25. public $inc;
  26. /**
  27. * Creates a new timestamp. If no parameters are given, the current time is used
  28. * and the increment is automatically provided. The increment is set to 0 when the
  29. * module is loaded and is incremented every time this constructor is called
  30. * (without the $inc parameter passed in).
  31. *
  32. * @link http://php.net/manual/en/mongotimestamp.construct.php
  33. * @param int $sec [optional] Number of seconds since January 1st, 1970
  34. * @param int $inc [optional] Increment
  35. */
  36. public function __construct($sec = 0, $inc) {}
  37. /**
  38. * @return string
  39. */
  40. public function __toString() {}
  41. }