MOON
Server: Apache
System: Linux server1.studioinfinity.com.br 2.6.32-954.3.5.lve1.4.90.el6.x86_64 #1 SMP Tue Feb 21 12:26:30 UTC 2023 x86_64
User: artinside (517)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/cwd/finance/source/Models/Ecommerce/Orders.php
<?php
/**
 * Created by PhpStorm.
 * User: sergiohidalgojunior
 * Date: 2019-09-23
 * Time: 18:12
 */

namespace Source\Models\Ecommerce;


use Source\Core\Model;
use Source\Models\User;

class Orders extends Model
{
    public function __construct()
    {
        parent::__construct("orders", ["id"], ["title", "starting_date", "percentual"]);

    }

//
//    public function findByIntegrationOrder(string $integrationOrder, string $columns = "*"): ?Orders
//    {
//        $find = $this->find("integration_order = :io", "io={$integrationOrder}", $columns);
//        return $find->fetch();
//    }

//    /**
//     * @return null|User
//     */
//    public function user(): ?User
//    {
//        if ($this->user_id) {
//            return (new User())->find("id = :id", "id={$this->user_id}")->fetch();
//        }
//        return null;
//    }
//    /**
//     * @return null|Coupon
//     */
//    public function coupon(): ?Coupon
//    {
//        if ($this->partner_id) {
//            return (new Coupon())->find("id = :id", "id={$this->coupon_id}")->fetch();
//        }
//        return null;
//    }


}