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.

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: robin
  5. * Date: 9/27/15
  6. * Time: 5:21 PM
  7. */
  8. class Tests
  9. {
  10. private $value = null;
  11. public function __construct($value = null)
  12. {
  13. $this->value = $value;
  14. }
  15. public static function where($col, $operator, $value)
  16. {
  17. return new Tests($value);
  18. }
  19. public function first()
  20. {
  21. if ($this->value != 42) {
  22. return null;
  23. }
  24. return new Tests($this->value);
  25. }
  26. public function toDbo()
  27. {
  28. return new Tests($this->value);
  29. }
  30. }
  31. class TestsDataAccess extends \Luticate\Utils\LuDataAccess {
  32. protected static function getModel()
  33. {
  34. return new Tests();
  35. }
  36. }