Table of Contents
    
                    - 
    $data
    
                         : array<string|int, mixed>            
- 
    $primaryKey
    
                         : string            
- 
    $tableName
    
                         : string            
- 
    $db
    
                         : Database            
- 
    __construct()
    
                                 : mixed    
- 
    __get()
    
                                 : mixed    
- 
    __set()
    
                                 : mixed    
- 
    all()
    
                                 : mixed    
- 
    allWhere()
    
                                 : mixed    
- 
    create()
    
                                 : mixed    
- 
    data()
    
                                 : mixed    
- 
    delete()
    
                                 : mixed    
- 
    destroy()
    
                                 : mixed    
- 
    find()
    
                                 : mixed    
- 
    getFromPrimaryKey()
    
                                 : mixed    
- 
    getSQL()
    
                                 : mixed    
- 
    getTableNameFromClass()
    
                                 : mixed    
- 
    save()
    
                                 : mixed    
- 
    setData()
    
                                 : mixed    
- 
    update()
    
                                 : mixed    
- 
    where()
    
                                 : mixed    
- 
    pluralize()
    
                                 : mixed    
        $data
        
        
                                
    
    
    
    
    protected
        array<string|int, mixed>
    $data
     = []
        
        
    
                    
    
        $primaryKey
        
        
                                
    
    
    
    
    protected
        string
    $primaryKey
     = "id"
        
        
    
                    
    
        $tableName
        
        
                                
    
    
    
    
    protected
        string
    $tableName
    
        
        
    
                    
    
        $db
        
        
                                
    
    
    
    
    private
        Database
    $db
    
        
        
    
            
            
        
                    
    
        __construct()
        
    
    
    
    
    public
                    __construct() : mixed
        
    
    
        Return values
    mixed
            —
        
    
                    
    
        __get()
        
    
    
    
    
    public
                    __get(mixed $name) : mixed
        
        Parameters
    
                    - 
                $name
                : mixed
                            
- 
                    
            
Return values
    mixed
            —
        
    
                    
    
        __set()
        
    
    
    
    
    public
                    __set(string $name, mixed $value) : mixed
        
        Parameters
    
                    - 
                $name
                : string
                            
- 
                    
            
- 
                $value
                : mixed
                            
- 
                    
            
Return values
    mixed
            —
        
    
                    
    
        all()
        
    
    
    
    
    public
            static        all([mixed $fetchMethod = PDO::FETCH_ASSOC ]) : mixed
        
        Parameters
    
                    - 
                $fetchMethod
                : mixed
                 = PDO::FETCH_ASSOC            
- 
                    
            
Return values
    mixed
            —
        
    
                    
    
        allWhere()
        
    
    
    
    
    public
            static        allWhere([array<string|int, mixed> $conditions = [] ][, array<string|int, mixed> $options = [] ][, mixed $fetchMethod = PDO::FETCH_ASSOC ]) : mixed
        
        Parameters
    
                    - 
                $conditions
                : array<string|int, mixed>
                 = []            
- 
                    
            
- 
                $options
                : array<string|int, mixed>
                 = []            
- 
                    
            
- 
                $fetchMethod
                : mixed
                 = PDO::FETCH_ASSOC            
- 
                    
            
Return values
    mixed
            —
        
    
                    
    
        create()
        
    
    
    
    
    public
            static        create(array<string|int, mixed> $data) : mixed
        
        Parameters
    
                    - 
                $data
                : array<string|int, mixed>
                            
- 
                    
            
Return values
    mixed
            —
        
    
                    
    
        data()
        
    
    
    
    
    public
                    data() : mixed
        
    
    
        Return values
    mixed
            —
        
    
                    
    
        delete()
        
    
    
    
    
    public
            static        delete(mixed $id) : mixed
        
        Parameters
    
                    - 
                $id
                : mixed
                            
- 
                    
            
Return values
    mixed
            —
        
    
                    
    
        destroy()
        
    
    
    
    
    public
                    destroy() : mixed
        
    
    
        Return values
    mixed
            —
        
    
                    
    
        find()
        
    
    
    
    
    public
            static        find(mixed $id) : mixed
        
        Parameters
    
                    - 
                $id
                : mixed
                            
- 
                    
            
Return values
    mixed
            —
        
    
                    
    
        getFromPrimaryKey()
        
    
    
    
    
    public
                    getFromPrimaryKey(mixed $id) : mixed
        
        Parameters
    
                    - 
                $id
                : mixed
                            
- 
                    
            
Return values
    mixed
            —
        
    
                    
    
        getSQL()
        
    
    
    
    
    public
                    getSQL() : mixed
        
    
    
        Return values
    mixed
            —
        
    
                    
    
        getTableNameFromClass()
        
    
    
    
    
    public
                    getTableNameFromClass() : mixed
        
    
    
        Return values
    mixed
            —
        
    
                    
    
        save()
        
    
    
    
    
    public
                    save() : mixed
        
    
    
        Return values
    mixed
            —
        
    
                    
    
        setData()
        
    
    
    
    
    public
                    setData(array<string|int, mixed> $data[, mixed $id = null ]) : mixed
        
        Parameters
    
                    - 
                $data
                : array<string|int, mixed>
                            
- 
                    
            
- 
                $id
                : mixed
                 = null            
- 
                    
            
Return values
    mixed
            —
        
    
                    
    
        update()
        
    
    
    
    
    public
            static        update(mixed $id, array<string|int, mixed> $data) : mixed
        
        Parameters
    
                    - 
                $id
                : mixed
                            
- 
                    
            
- 
                $data
                : array<string|int, mixed>
                            
- 
                    
            
Return values
    mixed
            —
        
    
                    
    
        where()
        
    
    
    
    
    public
            static        where(array<string|int, mixed> $conditions) : mixed
        
        Parameters
    
                    - 
                $conditions
                : array<string|int, mixed>
                            
- 
                    
            
Return values
    mixed
            —
        
    
                    
    
        pluralize()
        
    
    
    
    
    private
                    pluralize(mixed $singular) : mixed
        
        Parameters
    
                    - 
                $singular
                : mixed
                            
- 
                    
            
Return values
    mixed
            —