<?php

class StuntingRealisasi extends \Phalcon\Mvc\Model
{

    /**
     *
     * @var integer
     */
    public $id;

    /**
     *
     * @var integer
     */
    public $id_anggaran;

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

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

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

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

    /**
     *
     * @var integer
     */
    public $tahun;

    /**
     *
     * @var double
     */
    public $nilai;

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

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

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

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return StuntingRealisasi[]|StuntingRealisasi|\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 StuntingRealisasi|\Phalcon\Mvc\Model\ResultInterface
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

}
