open-orchestra/open-orchestra-mongo-libs

View on GitHub
MongoTrait/Schemeable.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace OpenOrchestra\MongoTrait;

use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;

/**
 * Trait Schemeable
 */
trait Schemeable
{
    /**
     * @var string $scheme
     *
     * @ODM\Field(type="string")
     */
    protected $scheme;

    /**
     * @param string $scheme
     */
    public function setScheme($scheme)
    {
        $this->scheme = $scheme;
    }

    /**
     * @return string
     */
    public function getScheme()
    {
        return $this->scheme;
    }
}