I keep getting undefined variable warnings for $diameter, $surface and $circumference
<?php
class Cirkel
{
public $diameter, $surface, $circumference;
public function __construct()
{
$this->diameter = $diameter; //$diameter is undefined
$this->surface = $surface; //$surface is undefined
$this->circumference = $circumference; //$circumference is undefined
}
}
?>
I already tried passing them as parameters but than it gives me the error that too few arguments have been passed to construct?