Knp\Bundle\KnpBundlesBundle\Entity\Bundle::__construct PHP Method

__construct() public method

public __construct ( null | string $fullName = null )
$fullName null | string
    public function __construct($fullName = null)
    {
        if ($fullName) {
            list($this->ownerName, $this->name) = explode('/', $fullName);
        }
        $this->createdAt = new \DateTime();
        $this->updatedAt = new \DateTime();
        $this->lastCommitAt = new \DateTime('2010-01-01');
        $this->activities = new ArrayCollection();
        $this->contributors = new ArrayCollection();
        $this->scores = new ArrayCollection();
        $this->keywords = new ArrayCollection();
        $this->favorers = new ArrayCollection();
    }