Created
April 3, 2014 14:18
-
-
Save gpfiel/9955216 to your computer and use it in GitHub Desktop.
ContaFonecedor.php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Gabriel P. Fiel <[email protected]> | |
*/ | |
namespace Application\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use Gedmo\Mapping\Annotation as Gedmo; | |
use Application\Interfaces\SoftDeleteInterface; | |
/** | |
* @ORM\Entity | |
* @ORM\Table(name="conta_fornecedor") | |
* @Gedmo\SoftDeleteable(fieldName="dataExclusao", timeAware=false) | |
*/ | |
class ContaFornecedor implements SoftDeleteInterface | |
{ | |
/** | |
* @ORM\Id | |
* @ORM\Column(name="ID", type="integer", nullable=false) | |
* @ORM\GeneratedValue(strategy="AUTO") | |
*/ | |
private $id; | |
/** | |
* @ORM\Column(name="NOME", type="string", length=45, nullable=true) | |
*/ | |
private $nome; | |
/** | |
* @ORM\Column(name="TELEFONE", type="string", length=45, nullable=false) | |
*/ | |
private $telefone; | |
/** | |
* @ORM\Column(name="CONTATO", type="string", length=45, nullable=false) | |
*/ | |
private $contato; | |
/** | |
* @var Conta | |
* | |
* @ORM\ManyToOne(targetEntity="Conta", inversedBy="contasFornecedor", cascade={"all"}) | |
* @ORM\JoinColumn(name="CONTA_ID", referencedColumnName="ID", nullable=true) | |
*/ | |
private $conta; | |
/** | |
* @ORM\Column(name="ID_EXTERNO", type="string", length=50, nullable=true) | |
*/ | |
private $idExterno; | |
/** | |
* @var string | |
* | |
* @ORM\Column(name="PROPRIETARIO", type="string", length=50, nullable=true) | |
*/ | |
private $proprietario; | |
/** | |
* @var string | |
* | |
* @ORM\Column(name="TIPO_PROPRIETARIO", type="string", length=20, nullable=true) | |
*/ | |
private $tipoProprietario; | |
/** | |
* @Gedmo\Timestampable(on="create") | |
* @ORM\Column(name="DATA_CRIACAO", type="datetime", nullable=false) | |
*/ | |
private $dataCriacao; | |
/** | |
* @Gedmo\Timestampable(on="update") | |
* @ORM\Column(name="DATA_ATUALIZACAO", type="datetime", nullable=true) | |
*/ | |
private $dataAtualizacao; | |
/** | |
* @var \DateTime | |
* | |
* @ORM\Column(name="DATA_EXCLUSAO", type="datetime", nullable=true) | |
*/ | |
private $dataExclusao; | |
public function setId($id) | |
{ | |
$this->id = $id; | |
} | |
public function getId() | |
{ | |
return $this->id; | |
} | |
public function setNome($nome) | |
{ | |
$this->nome = $nome; | |
} | |
public function getNome() | |
{ | |
return $this->nome; | |
} | |
public function getConta() | |
{ | |
return $this->conta; | |
} | |
public function setConta(Conta $conta) | |
{ | |
$this->conta = $conta; | |
return $this; | |
} | |
public function setTelefone($telefone) | |
{ | |
$this->telefone = $telefone; | |
} | |
public function getTelefone() | |
{ | |
return $this->telefone; | |
} | |
public function setContato($contato) | |
{ | |
$this->contato = $contato; | |
} | |
public function getContato() | |
{ | |
return $this->contato; | |
} | |
public function setIdExterno($idExterno) | |
{ | |
$this->idExterno = $idExterno; | |
} | |
public function getIdExterno() | |
{ | |
return $this->idExterno; | |
} | |
/** | |
* Gets the value of dataCriacao. | |
* | |
* @return mixed | |
*/ | |
public function getDataCriacao() | |
{ | |
return $this->dataCriacao; | |
} | |
/** | |
* Sets the value of dataCriacao. | |
* | |
* @param mixed $dataCriacao the data criacao | |
* | |
* @return self | |
*/ | |
public function setDataCriacao($dataCriacao) | |
{ | |
$this->dataCriacao = $dataCriacao; | |
return $this; | |
} | |
/** | |
* Gets the value of dataAtualizacao. | |
* | |
* @return mixed | |
*/ | |
public function getDataAtualizacao() | |
{ | |
return $this->dataAtualizacao; | |
} | |
/** | |
* Sets the value of dataAtualizacao. | |
* | |
* @param mixed $dataAtualizacao the data atualizacao | |
* | |
* @return self | |
*/ | |
public function setDataAtualizacao($dataAtualizacao) | |
{ | |
$this->dataAtualizacao = $dataAtualizacao; | |
return $this; | |
} | |
/** | |
* Gets the value of dataExclusao. | |
* | |
* @return \DateTime | |
*/ | |
public function getDataExclusao() | |
{ | |
return $this->dataExclusao; | |
} | |
/** | |
* Sets the value of dataExclusao. | |
* | |
* @param \DateTime $dataExclusao the data exclusao | |
* | |
* @return self | |
*/ | |
public function setDataExclusao($dataExclusao) | |
{ | |
$this->dataExclusao = $dataExclusao; | |
return $this; | |
} | |
/** | |
* Gets the value of proprietario. | |
* | |
* @return string | |
*/ | |
public function getProprietario() | |
{ | |
return $this->proprietario; | |
} | |
/** | |
* Sets the value of proprietario. | |
* | |
* @param string $proprietario the proprietario | |
* | |
* @return self | |
*/ | |
public function setProprietario($proprietario) | |
{ | |
$this->proprietario = $proprietario; | |
return $this; | |
} | |
/** | |
* Gets the value of tipoProprietario. | |
* | |
* @return string | |
*/ | |
public function getTipoProprietario() | |
{ | |
return $this->tipoProprietario; | |
} | |
/** | |
* Sets the value of tipoProprietario. | |
* | |
* @param string $tipoProprietario the tipo proprietario | |
* | |
* @return self | |
*/ | |
public function setTipoProprietario($tipoProprietario) | |
{ | |
$this->tipoProprietario = $tipoProprietario; | |
return $this; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment