?? GreyFile — Mystic File Browser

Current path: home/webdevt/cryptoimpot.fr/module/Application/src/Entity/



?? Go up: /home/webdevt/cryptoimpot.fr/module/Application/src

?? Viewing: Import.php

<?php

namespace Application\Entity;

use Doctrine\ORM\Mapping as ORM;
use User\Entity\User as User;

/**
 * Import
 *
 * @ORM\Entity
 * @ORM\Table(name="import")
 * @property int $id
 * @property User $user
 * @property int $sourceType
 * @property string $name
 * @property int $nombreTrade
 * @property datetime $datetimeImport
 * 
 */
class Import {

    /**
     * @ORM\Id
     * @ORM\Column(type="integer", name="id");
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    public $id;
    
    /**
     * @ORM\ManyToOne(targetEntity="\User\Entity\User", inversedBy="imports")
     * @ORM\JoinColumn(nullable=false)
     */
    public $user;
    
    /**
     * @var Exchange $exchange
     *
     * @ORM\ManyToOne(targetEntity="Application\Entity\Exchange", inversedBy="import", cascade={"persist", "merge"})
     * @ORM\JoinColumns({
     * @ORM\JoinColumn(name="exchange_id", referencedColumnName="id")
     * })
     */
    public $exchange;
    
    /**
     * @ORM\Column(type="string", name="source_type")
     */
    public $sourceType;
    
    /**
     * @ORM\Column(type="string", name="name")
     */
    public $name;

    /**
     * @ORM\Column(type="string", name="path")
     */
    public $path;

    /**
     * @ORM\Column(type="integer", name="nombre_trade")
     */
    public $nombreTrade;
    
    /**
     * @ORM\Column(type="datetime", name="datetime_import")
     */
    public $datetimeImport;
    
    public function __construct($arrayParam) {
        foreach($arrayParam as $key => $val){
            $this->{$key} = $val;
        }
    }
    
    public function getId() {
        return $this->id;
    }

    public function getUser() {
        return $this->user;
    }

    public function getSourceType() {
        return $this->sourceType;
    }

    public function getName() {
        return $this->name;
    }

    public function getNombreTrade() {
        return $this->nombreTrade;
    }

    public function getDatetimeImport() {
        return $this->datetimeImport;
    }

    public function setId($id) {
        $this->id = $id;
    }

    public function setUser($user) {
        $this->user = $user;
    }

    public function setSourceType($sourceType) {
        $this->sourceType = $sourceType;
    }

    public function setName($name) {
        $this->name = $name;
    }

    public function setNombreTrade($nombreTrade) {
        $this->nombreTrade = $nombreTrade;
    }

    public function setDatetimeImport($datetimeImport) {
        $this->datetimeImport = $datetimeImport;
    }
    
    public function getExchange(): Exchange {
        return $this->exchange;
    }

    public function setExchange(Exchange $exchange) {
        $this->exchange = $exchange;
    }

    /**
     * @return mixed
     */
    public function getPath()
    {
        return $this->path;
    }

    /**
     * @param mixed $path
     */
    public function setPath($path)
    {
        $this->path = $path;
    }




}


??

??