Has() method definition?

In Cake 3’s baked templates, I see this construction:

$composition->has('composer') ?

I’ve searched and I’ve googled (both in the cookbook and the internet at large), but I can’t find any documentation for “has()”. I’m guessing that this is some kind of synonym for property_exists(), but I’d really like to see that spelled out somewhere. Can somebody point me to where this is explicitly defined?

I’m new to CakePHP 3 – please be gentle.

http://api.cakephp.org/3.3/class-Cake.Core.ObjectRegistry.html#_has

http://api.cakephp.org/3.3/source-class-Cake.Core.ObjectRegistry.html#189-198

Thank you!! That was driving me crazy.

1 Like