Pantheon\Terminus\Models\OrganizationUserMembership::getUser PHP Method

getUser() public method

Get the user for this membership
public getUser ( ) : User
return User
    public function getUser()
    {
        if (empty($this->user)) {
            $this->user = $this->getContainer()->get(User::class, [$this->user_data]);
            $this->user->memberships = [$this];
        }
        return $this->user;
    }