<?php

class ViewNotifikasiMcp extends \Phalcon\Mvc\Model
{

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

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

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

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

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

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

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

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

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

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

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

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

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

}
