Last active
September 9, 2020 13:15
-
-
Save andreybolonin/2cf6342a3c4dc15b4153880fcb9babb3 to your computer and use it in GitHub Desktop.
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 | |
namespace App\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* @ORM\Entity | |
*/ | |
class NamespaceSymfony | |
{ | |
/** | |
* @ORM\Id() | |
* @ORM\GeneratedValue(strategy="IDENTITY") | |
* @ORM\Column(type="integer") | |
*/ | |
private $id; | |
/** | |
* @ORM\Column(type="text", nullable=true) | |
*/ | |
private $name; | |
/** | |
* @ORM\Column(type="text", nullable=true) | |
*/ | |
private $url; | |
/** | |
* @ORM\Column(type="datetime", nullable=true) | |
*/ | |
private $createdAt; | |
/** | |
* NamespaceSymfony constructor. | |
*/ | |
public function __construct() | |
{ | |
$this->createdAt = new \DateTime(); | |
} | |
public function getId() | |
{ | |
return $this->id; | |
} | |
/** | |
* @return string | |
*/ | |
public function getName() | |
{ | |
return $this->name; | |
} | |
/** | |
* @param string $name | |
*/ | |
public function setName(string $name) | |
{ | |
$this->name = $name; | |
} | |
/** | |
* @return string | |
*/ | |
public function getUrl() | |
{ | |
return $this->url; | |
} | |
/** | |
* @param string $url | |
*/ | |
public function setUrl(string $url) | |
{ | |
$this->url = $url; | |
} | |
/** | |
* @return \DateTime | |
*/ | |
public function getCreatedAt() | |
{ | |
return $this->createdAt; | |
} | |
/** | |
* @param \DateTime $createdAt | |
*/ | |
public function setCreatedAt(\DateTime $createdAt): void | |
{ | |
$this->createdAt = $createdAt; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment