Entity/Traits/TicketTrait.php
public function setUserCreated($userCreated)
    {
        if (\is_object($userCreated)) {
            $this->userCreatedObject = $userCreated;
            $this->userCreated       = $userCreated->getId();
        } else {
            $this->userCreatedObject = null;
            $this->userCreated       = $userCreated;
        }

        return $this;
    }
public function setUserCreated($userCreated)
    {
        if (\is_object($userCreated)) {
            $this->userCreatedObject = $userCreated;
            $this->userCreated       = $userCreated->getId();
        } else {
            $this->userCreatedObject = null;
            $this->userCreated       = $userCreated;
        }

        return $this;
    }
public function setUserCreated ( $ userCreated ) { if ( \ is_object ( $ userCreated ) ) { $ this -> userCreatedObject = $ userCreated ; $ this -> userCreated = $ userCreated -> getId ( ) ; } else { $ this -> userCreatedObject = null ; $ this -> userCreated = $ userCreated ; } return $ this ; }
Set userCreated.

@param int|object $userCreated

@return $this
Set userCreated .