radarrplexorganizrnginxsonarrdashboardembycouchpotatonzbgetbookmarkapplication-dashboardmuximuxlandingpagestartpagelandinghtpcserverhomepagesabnzbdheimdall
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
555 B
33 lines
555 B
7 years ago
|
Modifier change
|
||
|
-----
|
||
|
<?php
|
||
|
class Foo {}
|
||
|
abstract class Bar {
|
||
|
const
|
||
|
FOO = 42;
|
||
|
|
||
|
var $foo
|
||
|
= 24;
|
||
|
|
||
|
public function
|
||
|
foo() {}
|
||
|
}
|
||
|
-----
|
||
|
$stmts[0]->flags = Stmt\Class_::MODIFIER_ABSTRACT;
|
||
|
$stmts[1]->flags = 0;
|
||
|
$stmts[1]->stmts[0]->flags = Stmt\Class_::MODIFIER_PRIVATE;
|
||
|
$stmts[1]->stmts[1]->flags = Stmt\Class_::MODIFIER_PROTECTED;
|
||
|
$stmts[1]->stmts[2]->flags |= Stmt\Class_::MODIFIER_FINAL;
|
||
|
-----
|
||
|
<?php
|
||
|
abstract class Foo {}
|
||
|
class Bar {
|
||
|
private const
|
||
|
FOO = 42;
|
||
|
|
||
|
protected $foo
|
||
|
= 24;
|
||
|
|
||
|
public final function
|
||
|
foo() {}
|
||
|
}
|