public function setClassName($sClass)
    {
        $this->sPrefix = $this->getOption('core.prefix.function');

        $sClass = trim($sClass, '.\\ ');
        if(!$sClass)
        {
            return $this;
        }

        if(!($xCallable = $this->xRepository->getCallableObject($sClass)))
        {
            // Todo: decide which of these values to return
            // return null;
            return $this;
        }

        $this->sPrefix = $this->getOption('core.prefix.class') . $xCallable->getJsName() . '.';
        return $this;
    }
public function setClassName($sClass)
    {
        $this->sPrefix = $this->getOption('core.prefix.function');

        $sClass = trim($sClass, '.\\ ');
        if(!$sClass)
        {
            return $this;
        }

        if(!($xCallable = $this->xRepository->getCallableObject($sClass)))
        {
            // Todo: decide which of these values to return
            // return null;
            return $this;
        }

        $this->sPrefix = $this->getOption('core.prefix.class') . $xCallable->getJsName() . '.';
        return $this;
    }
public function setClassName ( $ sClass ) { $ this -> sPrefix = $ this -> getOption ( 'core.prefix.function' ) ; $ sClass = trim ( $ sClass , '.\\ ' ) ; if ( ! $ sClass ) { return $ this ; } if ( ! ( $ xCallable = $ this -> xRepository -> getCallableObject ( $ sClass ) ) ) { // Todo: decide which of these values to return // return null; return $ this ; } $ this -> sPrefix = $ this -> getOption ( 'core.prefix.class' ) . $ xCallable -> getJsName ( ) . '.' ; return $ this ; }
Set the name of the class to call

@param string|null            $sClass              The callable class

@return Factory
Set the name of the class to call