<?php

/**
 * Created by PhpStorm.
 * User: robin
 * Date: 9/27/15
 * Time: 5:21 PM
 */

class Tests
{
    private $value = null;
    public function __construct($value = null)
    {
        $this->value = $value;
    }

    public static function where($col, $operator, $value)
    {
        return new Tests($value);
    }

    public function first()
    {
        if ($this->value != 42) {
            return null;
        }
        return new Tests($this->value);
    }
    public function toDbo()
    {
        return new Tests($this->value);
    }
}

class TestsDataAccess extends \Luticate\Utils\LuDataAccess {
    protected static function getModel()
    {
        return new Tests();
    }
}