phpdoc classes

raw

phork0.php

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
class Base
{
    protected $modelClass = null;
 
    /**
     * Send request
     *
     * @return Model
     */
    public function send()
    {
        return new $this->$modelClass();
    }
}
 
class Foo extends Base
{
    protected $modelClass = 'FooResponse';
}
 
class Model{}
class FooResponse extends Model {}
?>
 
Christian Weiske Christian Weiske
owner

History