chamilo/chamilo-lms

View on GitHub
src/CoreBundle/Traits/CourseTrait.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

/* For licensing terms, see /license.txt */

namespace Chamilo\CoreBundle\Traits;

use Chamilo\CoreBundle\Entity\Course;

/**
 * Trait CourseTrait.
 */
trait CourseTrait
{
    /**
     * @return Course
     */
    public function getCourse()
    {
        return $this->course;
    }

    /**
     * @return $this
     */
    public function setCourse(Course $course): self
    {
        $this->course = $course;

        return $this;
    }
}