<?php
namespace App\Entity\System;
use Doctrine\ORM\Mapping as ORM;
/**
* CustomerApi
*
* @ORM\Table(name="ps_customer_api_key")
*
* @ORM\Entity(repositoryClass="App\Repository\System\CustomerApiRepository")
*/
class CustomerApi
{
/**
* @ORM\Id()
*
* @ORM\GeneratedValue()
*
* @ORM\Column(type="integer", name="id_api")
*/
private $id;
/**
* @var Customer
*
* @ORM\ManyToOne(targetEntity="App\Entity\System\Customer", inversedBy="customerApi")
*
* @ORM\JoinColumn(name="id_customer", referencedColumnName="id_customer")
*/
private $customer;
/**
* @var string|null
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $apiSandbox;
/**
* @var string|null
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $apiProduction;
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*
* @return CustomerApi
*/
public function setId($id): CustomerApi
{
$this->id = $id;
return $this;
}
/**
* @return Customer
*/
public function getCustomer(): Customer
{
return $this->customer;
}
/**
* @param Customer $customer
*
* @return CustomerApi
*/
public function setCustomer(Customer $customer): CustomerApi
{
$this->customer = $customer;
return $this;
}
/**
* @return string|null
*/
public function getApiSandbox(): ?string
{
return $this->apiSandbox;
}
/**
* @param string|null $apiSandbox
*
* @return CustomerApi
*/
public function setApiSandbox(?string $apiSandbox): CustomerApi
{
$this->apiSandbox = $apiSandbox;
return $this;
}
/**
* @return string|null
*/
public function getApiProduction(): ?string
{
return $this->apiProduction;
}
/**
* @param string|null $apiProduction
*
* @return CustomerApi
*/
public function setApiProduction(?string $apiProduction): CustomerApi
{
$this->apiProduction = $apiProduction;
return $this;
}
}