public function __construct($object, $fieldname) { $this->setObject($object); if ($fieldname) { $this->setFieldname($fieldname); } }