<?php
namespace App\Models;

/**
 * Activity Model
 */
class Activity
{
    public $id;
    public $didar_activity_id;
    public $activity_type_id;
    public $activity_type_title;
    public $owner_didar_id;
    public $deal_didar_id;
    public $contact_didar_id;
    public $title;
    public $note;
    public $result_note;
    public $failure_reason_code;
    public $failure_reason_description;
    public $is_done;
    public $due_date;
    public $done_date;
    public $duration;
    public $call_type;
    public $activity_category;
    public $direction;
    public $stage;
    public $is_scheduled;
    public $reminder_enabled;
    public $register_date;
    public $last_update_time;
    public $last_sync;
    public $raw_json;
    public $created_at;

    public function __construct(array $data = [])
    {
        foreach ($data as $key => $value) {
            if (property_exists($this, $key)) {
                $this->$key = $value;
            }
        }
    }

    public function toArray()
    {
        return get_object_vars($this);
    }
}

