コード例 #1
0
ファイル: Invocation.php プロジェクト: timetoogo/penumbra
 public function __construct(array $ConstantArguments = [])
 {
     parent::__construct(new InvocationGetter($ConstantArguments), new InvocationSetter($ConstantArguments));
 }
コード例 #2
0
ファイル: MethodPair.php プロジェクト: timetoogo/penumbra
 public function __construct($GetterMethodName, $SetterMethodName)
 {
     parent::__construct(new MethodGetter($GetterMethodName), new MethodSetter($SetterMethodName));
 }
コード例 #3
0
ファイル: Indexer.php プロジェクト: timetoogo/penumbra
 public function __construct($Index)
 {
     $this->Index = $Index;
     parent::__construct(new IndexGetter($Index), new IndexSetter($Index));
 }
コード例 #4
0
ファイル: Field.php プロジェクト: timetoogo/penumbra
 public function __construct($FieldName)
 {
     parent::__construct(new FieldGetter($FieldName), new FieldSetter($FieldName));
 }
コード例 #5
0
ファイル: get_set.php プロジェクト: VeraKH/PHP-repo
<?php

class GetterSetter
{
    private $a = 1;
    public function get_a()
    {
        echo $this->a;
    }
    public function set_a()
    {
        echo $this->a = 5;
    }
}
$example = new GetterSetter();
echo $example->get_a();
echo "<br/>";
echo $example->set_a();