private function getBehaviorLocator()
    {
        if (null === $this->behaviorLocator) {
            $config = $this->getGeneratorConfig();
            if (null !== $config) {
                $this->behaviorLocator = $config->getBehaviorLocator();
                if (null === $this->behaviorLocator) {
                    $this->behaviorLocator = new BehaviorLocator();
                }
            } else {
                $this->behaviorLocator = new BehaviorLocator();
            }
        }

        return $this->behaviorLocator;
    }
private function getBehaviorLocator()
    {
        if (null === $this->behaviorLocator) {
            $config = $this->getGeneratorConfig();
            if (null !== $config) {
                $this->behaviorLocator = $config->getBehaviorLocator();
                if (null === $this->behaviorLocator) {
                    $this->behaviorLocator = new BehaviorLocator();
                }
            } else {
                $this->behaviorLocator = new BehaviorLocator();
            }
        }

        return $this->behaviorLocator;
    }
private function getBehaviorLocator ( ) { if ( null === $ this -> behaviorLocator ) { $ config = $ this -> getGeneratorConfig ( ) ; if ( null !== $ config ) { $ this -> behaviorLocator = $ config -> getBehaviorLocator ( ) ; if ( null === $ this -> behaviorLocator ) { $ this -> behaviorLocator = new BehaviorLocator ( ) ; } } else { $ this -> behaviorLocator = new BehaviorLocator ( ) ; } } return $ this -> behaviorLocator ; }
Returns the behavior locator.

@return BehaviorLocator
Returns the behavior locator .