I want to invoke a function on an object. The name of the function is stored in a static property of a class (of which the object is an instance). This invocation happens inside one of the object's methods.
None of the approaches below work (it's after the getBean()->
that I'm confused).
$this->getBean()->User::$BEANSCHEMA_FIRST_NAME;
$this->getBean()->self::$BEANSCHEMA_FIRST_NAME;
$this->getBean()->$self::$BEANSCHEMA_FIRST_NAME;
How can I accomplish this, preferrably without a weird library function like call_user_func()
?