What does this code mean? Is this how you declare a pointer in php?
$this->entryId = $entryId;
PHP passes Arrays and Objects by reference (pointers). If you want to pass a normal variable Ex. $var = 'boo'; then use $boo = &$var;.