<?php

class MadrasahProvince extends \Phalcon\Mvc\Model
{

    /**
     *
     * @var string
     */
    public $province_code;

    /**
     *
     * @var string
     */
    public $province_name;

    /**
     *
     * @var string
     */
    public $last_update_at;

    /**
     *
     * @var string
     */
    public $last_update_page;

    /**
     * Initialize method for model.
     */
    public function initialize()
    {
        $this->setSchema("jaga");
        $this->setSource("madrasah_province");
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'madrasah_province';
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return MadrasahProvince[]|MadrasahProvince|\Phalcon\Mvc\Model\ResultSetInterface
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return MadrasahProvince|\Phalcon\Mvc\Model\ResultInterface
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

}
