for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* YAWIK
*
* @filesource
* @copyright (c) 2013 - 2016 Cross Solution (http://cross-solution.de)
* @license MIT
*/
/** Core models */
namespace Core\Entity;
* Trait implementing DraftableEntityInterface
* @author Mathias Gelhausen <[email protected]>
trait DraftableEntityTrait
{
* The current draft state of this entity.
* @ODM\Boolean
* @var bool
protected $isDraft = true;
public function isDraft()
return $this->isDraft;
}
public function setIsDraft($flag)
$this->isDraft = (bool) $flag;
return $this;