Error defining variable in PHP object
<p>I am getting the following error in the following code:</p>

<pre><code>Class primeField implements field {
    private $intmodulus = '';
    public function generator(){
        return ;
    }

    public function modulus(){
        return $this-&gt;$intmodulus;
    }
    public function __construct($modulus , $base=0) {
        if (is_resource($modulus) &amp;&amp; get_resource_type($modulus) == "GMP integer"){
            $this-&gt;$intmodulus = $modulus;
        } else{
            $this-&gt;$intmodulus = gmp_init($modulus , $base); \\line 70
        }
    }
}
$a = new primeField(11);
$a-&gt;modulus();
</code></pre>

<p>Notice: Undefined variable: intmodulus in /Users/admin/PHP ECC/finitefield.php on line 70
Fatal error: Cannot access empty property in /Users/admin/PHP ECC/finitefield.php on line 70</p>

<p>Why</p>
