<?php
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Repository\SellerRepository")
*
* @ORM\Table(name="seller")
*/
class Seller
{
/**
* @ORM\Id
*
* @ORM\Column(type="bigint")
*
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(type="integer")
*/
protected $code;
/**
* @ORM\Column(type="string")
*/
protected $name;
/**
* @ORM\Column(type="string")
*/
protected $origin;
/**
* @ORM\Column(type="string")
*/
protected $folderId;
/**
* @ORM\Column(type="string", nullable=true)
*/
protected $iridiumId;
/**
* @ORM\OneToMany(targetEntity="App\Entity\Vehicle", mappedBy="seller")
*/
private $vehicles;
public function __construct()
{
$this->vehicles = new ArrayCollection();
}
public function getId()
{
return $this->id;
}
public function getCode()
{
return $this->code;
}
public function setCode($code): void
{
$this->code = $code;
}
public function getName()
{
return $this->name;
}
public function setName($name): void
{
$this->name = $name;
}
public function getOrigin()
{
return $this->origin;
}
public function setOrigin($origin): void
{
$this->origin = $origin;
}
public function getFolderId()
{
return $this->folderId;
}
public function setFolderId($folderId): void
{
$this->folderId = $folderId;
}
public function addVehicle(Vehicle $vehicle): void
{
$this->vehicles[] = $vehicle;
}
public function getVehicles()
{
return $this->vehicles;
}
public function getIridiumId()
{
return $this->iridiumId;
}
public function setIridiumId($iridiumId): void
{
$this->iridiumId = $iridiumId;
}
}