Kirby\Patterns\Pattern::__construct PHP Method

__construct() public method

public __construct ( $path = '', $data = [] )
    public function __construct($path = '', $data = [])
    {
        $this->lab = lab::instance();
        $this->name = basename($path);
        $this->path = trim($path, '/');
        $this->root = $this->lab->root() . DS . $path;
        $this->data = $data;
    }