You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SensorsValueDbo.php 842B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: robin
  5. * Date: 11/24/15
  6. * Time: 12:53 AM
  7. */
  8. namespace app\Http\DBO;
  9. use Luticate\Utils\LuDbo;
  10. class SensorsValueDbo extends LuDbo
  11. {
  12. private $_value;
  13. /**
  14. * @return mixed
  15. */
  16. public function getValue()
  17. {
  18. return $this->_value;
  19. }
  20. /**
  21. * @param mixed $value
  22. */
  23. public function setValue($value)
  24. {
  25. $this->_value = $value;
  26. }
  27. /**
  28. * Specify data which should be serialized to JSON
  29. * @link http://php.net/manual/en/jsonserializable.jsonserialize.php
  30. * @return mixed data which can be serialized by <b>json_encode</b>,
  31. * which is a value of any type other than a resource.
  32. * @since 5.4.0
  33. */
  34. function jsonSerialize()
  35. {
  36. return [
  37. "Value" => $this->_value
  38. ];
  39. }
  40. }