Promoting Methods

Methods can be promoted similarly to properties - just use promoteMethods() instead of promoteProperties():


namespace YourNamespace;

class YourDynamicClass {
   public function __call($method) {
      return $this->$method();

   protected function protectedMethod(): string {
namespace Houdini\Config\V1;

use YourNamespace\YourDynamicClass;

// promote the protected methods so they're visible outside the class:
    ->filter( AccessFilter::isProtected() );

Go to the next step to see how filters work.