<?php
namespace SHServ\Entities;
class NPDelivery extends \SHServ\Middleware\Entity {
public static $table_name = "nova_poshta_delivery";
protected static $fields = [
"id", "order_id", "addr", "city_ref", "city_name", "np_department"
];
public function __construct(Int $id, Array $data = []){
parent::__construct(
self::$table_name,
$id,
$data
);
}
public function department(): Mixed {
return json_decode($this -> np_department);
}
}