UserContextServiceAwareTrait.php 474 Bytes
Newer Older
1
2
3
4
<?php

namespace UnicaenAuth\Service\Traits;

Laurent Lécluse's avatar
Laurent Lécluse committed
5
use UnicaenAuth\Service\UserContext;
6
7

/**
8
 * @author Unicaen
9
10
11
12
 */
trait UserContextServiceAwareTrait
{
    /**
Laurent Lécluse's avatar
Laurent Lécluse committed
13
     * @var UserContext
14
     */
15
    protected $serviceUserContext;
16
17

    /**
Laurent Lécluse's avatar
Laurent Lécluse committed
18
     * @param UserContext $serviceUserContext
19
20
     * @return self
     */
Laurent Lécluse's avatar
Laurent Lécluse committed
21
    public function setServiceUserContext(UserContext $serviceUserContext)
22
23
24
25
26
27
    {
        $this->serviceUserContext = $serviceUserContext;

        return $this;
    }
}