Actualización

This commit is contained in:
Xes
2025-04-10 12:24:57 +02:00
parent 8969cc929d
commit 45420b6f0d
39760 changed files with 4303286 additions and 0 deletions

View File

@@ -0,0 +1,117 @@
<?php
namespace Gedmo\Tree\Entity\MappedSuperclass;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\MappedSuperclass
*/
abstract class AbstractClosure
{
/**
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
* @ORM\Column(type="integer")
*/
protected $id;
/**
* Mapped by listener
* Visibility must be protected
*/
protected $ancestor;
/**
* Mapped by listener
* Visibility must be protected
*/
protected $descendant;
/**
* @ORM\Column(type="integer")
*/
protected $depth;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set ancestor
*
* @param object $ancestor
*
* @return static
*/
public function setAncestor($ancestor)
{
$this->ancestor = $ancestor;
return $this;
}
/**
* Get ancestor
*
* @return object
*/
public function getAncestor()
{
return $this->ancestor;
}
/**
* Set descendant
*
* @param object $descendant
*
* @return static
*/
public function setDescendant($descendant)
{
$this->descendant = $descendant;
return $this;
}
/**
* Get descendant
*
* @return object
*/
public function getDescendant()
{
return $this->descendant;
}
/**
* Set depth
*
* @param integer $depth
*
* @return static
*/
public function setDepth($depth)
{
$this->depth = $depth;
return $this;
}
/**
* Get depth
*
* @return integer
*/
public function getDepth()
{
return $this->depth;
}
}