How static methods call private properties in php

...
class BaseModel {
    protected $field = [
        "delete_time",
        "update_time",
    ];
    
    public static function getById(){
        // $field
    }
}

Php
Aug.25,2021

static methods cannot call non-static properties.

the owner of a non-static property is an instantiated class that reinitializes its own non-static property each time the class is initialized.

while static methods are initialized only once. Therefore, non-static properties cannot be called in static methods.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eba5aa-27c6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eba5aa-27c6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?