File: test_options.php

package info (click to toggle)
php-zeta-base 1.9-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 860 kB
  • ctags: 611
  • sloc: php: 2,708; makefile: 11
file content (18 lines) | stat: -rw-r--r-- 438 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
class ezcBaseTestOptions extends ezcBaseOptions
{
    protected $properties = array( "foo" => "bar", "baz" => "blah" );

    public function __set( $propertyName, $propertyValue )
    {
        if ( $this->__isset( $propertyName ) )
        {
            $this->properties[$propertyName] = $propertyValue;
        }
        else
        {
            throw new ezcBasePropertyNotFoundException( $propertyName );
        }
    }
}
?>