File: trait4.php

package info (click to toggle)
phpab 1.21.0-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 724 kB
  • ctags: 1,004
  • sloc: php: 2,975; xml: 238; makefile: 32
file content (13 lines) | stat: -rw-r--r-- 174 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php

trait trait1 {
    public function demo() {}
}

trait trait2 {
    public function trait2Method() {}
}

class test {
    use trait1 { trait1::demo as foo }, trait2;
}