src/Model/Comment.php
protected function getMember($member = null)
    {
        if (!$member) {
            $member = Member::currentUser();
        }

        if (is_numeric($member)) {
            $member = DataObject::get_by_id(Member::class, $member, true);
        }

        return $member;
    }
protected function getMember($member = null)
    {
        if (!$member) {
            $member = Member::currentUser();
        }

        if (is_numeric($member)) {
            $member = DataObject::get_by_id(Member::class, $member, true);
        }

        return $member;
    }
protected function getMember ( $ member = null ) { if ( ! $ member ) { $ member = Member :: currentUser ( ) ; } if ( is_numeric ( $ member ) ) { $ member = DataObject :: get_by_id ( Member :: class , $ member , true ) ; } return $ member ; }
Resolves Member object.

@param Member|int|null $member
@return Member|null
Resolves Member object .