protected function initBranchCallback()
    {
        if (is_null($this->branchCallback)) {
            $this->branchCallback = function ($branch) {
                $key = $branch[$this->model->getKeyName()];
                $title = $branch[$this->model->getTitleColumn()];

                return "$key - $title";
            };
        }
    }
protected function initBranchCallback()
    {
        if (is_null($this->branchCallback)) {
            $this->branchCallback = function ($branch) {
                $key = $branch[$this->model->getKeyName()];
                $title = $branch[$this->model->getTitleColumn()];

                return "$key - $title";
            };
        }
    }
protected function initBranchCallback ( ) { if ( is_null ( $ this -> branchCallback ) ) { $ this -> branchCallback = function ( $ branch ) { $ key = $ branch [ $ this -> model -> getKeyName ( ) ] ; $ title = $ branch [ $ this -> model -> getTitleColumn ( ) ] ; return "$key - $title" ; } ; } }
Initialize branch callback.

@return void
Initialize branch callback .