 <p>In the construct method, you should do <code>$this-&gt;Result = $Result;</code> instead of <code>return $Result;</code>,</p> <p>then use <code>return $this-&gt;Result;</code> in <code>returnLucky()</code>.</p> <p>And you should avoid use variable like <code>$result</code> and <code>$Result</code>, which is confusing.</p>