| Value: | {1,4} | inherit |
| Initial: | see individual properties |
| Applies to: | all elements except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-column |
| Inherited: | no |
| Percentages: | refer to width of containing block |
| Media: | visual |
| Computed value: | see individual properties |
Или другой вариант – сделать нестатические методы приватными/защищенными
class MyModel {
public static function __callStatic($method, $parameters) {
$methodName = $method.'Method';
return (new static)->$methodName(...$parameters);
}
public function testMethod() {
echo 'It\'s OK';
return $this;
}
}
MyModel::test();
class MyModel {
public static function __callStatic($method, $parameters) {
return (new static)->$method(...$parameters);
}
public function testMethod() {
echo 'It\'s OK';
return $this;
}
}
MyModel::testMethod();
2 * 2 + 2 = 6 и 2 * (2 + 2) = 82 * 2 + 2 = 6 и (2 * 2) + 2 = 6
как понять результат?
Если( (условие1 И условие2) ИЛИ (условие3 И условие4) )