public function get_author_from_stdclass(stdClass $record) : author_entity {
        return new author_entity(
            $record->id,
            $record->picture,
            $record->firstname,
            $record->lastname,
            fullname($record),
            $record->email,
            $record->middlename,
            $record->firstnamephonetic,
            $record->lastnamephonetic,
            $record->alternatename,
            $record->imagealt
        );
    }
public function get_author_from_stdclass(stdClass $record) : author_entity {
        return new author_entity(
            $record->id,
            $record->picture,
            $record->firstname,
            $record->lastname,
            fullname($record),
            $record->email,
            $record->middlename,
            $record->firstnamephonetic,
            $record->lastnamephonetic,
            $record->alternatename,
            $record->imagealt
        );
    }
public function get_author_from_stdclass ( stdClass $ record ) : author_entity { return new author_entity ( $ record -> id , $ record -> picture , $ record -> firstname , $ record -> lastname , fullname ( $ record ) , $ record -> email , $ record -> middlename , $ record -> firstnamephonetic , $ record -> lastnamephonetic , $ record -> alternatename , $ record -> imagealt ) ; }
Create an author entity from a user record.

@param stdClass $record The user record
@return author_entity
Create an author entity from a user record .