1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?php
-
- namespace Gedmo\Blameable\Traits;
-
- /**
- * Blameable Trait, usable with PHP >= 5.4
- *
- * @author David Buchmann <mail@davidbu.ch>
- * @package Gedmo.Blameable.Traits
- * @subpackage BlameableEntity
- * @link http://www.gediminasm.org
- * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
- */
- trait BlameableEntity
- {
- /**
- * @Gedmo\Blameable(on="create")
- * @ORM\Column(type="string")
- */
- private $createdBy;
-
- /**
- * @Gedmo\Blameable(on="update")
- * @ORM\Column(type="string")
- */
- private $updatedBy;
-
- /**
- * Sets createdBy.
- *
- * @param string $createdBy
- * @return $this
- */
- public function setCreatedBy($createdBy)
- {
- $this->createdBy = $createdBy;
-
- return $this;
- }
-
- /**
- * Returns createdBy.
- *
- * @return string
- */
- public function getCreatedBy()
- {
- return $this->createdBy;
- }
-
- /**
- * Sets updatedBy.
- *
- * @param string $updatedBy
- * @return $this
- */
- public function setUpdatedBy($updatedBy)
- {
- $this->updatedBy = $updatedBy;
-
- return $this;
- }
-
- /**
- * Returns updatedBy.
- *
- * @return string
- */
- public function getUpdatedBy()
- {
- return $this->updatedBy;
- }
- }
|