for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* YAWIK
*
* @filesource
* @license MIT
* @copyright 2013 - 2017 Cross Solution <http://cross-solution.de>
*/
/** */
namespace Core\Entity;
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
* Implements \Core\Entity\ImageInterface
* @author Mathias Gelhausen <[email protected]>
* @since 0.29
trait ImageTrait
{
* Id of the image set.
* @ODM\Field(type="string")
* @var string
protected $belongsTo;
* Key name in the set.
* @ODM\Field
protected $key;
* @param string $imageSetId
* @return self
public function setBelongsTo($imageSetId)
$this->belongsTo = $imageSetId;
return $this;
}
* @return string
public function belongsTo()
return $this->belongsTo;
* @param string $key
public function setKey($key)
$this->key = $key;
public function getKey()
return $this->key;