public function classSet( $input )
    {

        if( is_object( $input ) ) {
            if( $input instanceof self ) {
                $class = $input->classGet();
            } else {
                $class = get_class( $input );
            }
        } else {
            $class = $input;
        }

        $currentClass = $this->classGet();
        if( $currentClass ) {
            if( $class !== $currentClass ) {
                throw new \LogicException( "Container has a class already ({$currentClass}) and it differs from your new one ({$class})" );
            }
            return false;
        }
        $this->class = $class;
        return true;
    }
public function classSet( $input )
    {

        if( is_object( $input ) ) {
            if( $input instanceof self ) {
                $class = $input->classGet();
            } else {
                $class = get_class( $input );
            }
        } else {
            $class = $input;
        }

        $currentClass = $this->classGet();
        if( $currentClass ) {
            if( $class !== $currentClass ) {
                throw new \LogicException( "Container has a class already ({$currentClass}) and it differs from your new one ({$class})" );
            }
            return false;
        }
        $this->class = $class;
        return true;
    }
public function classSet ( $ input ) { if ( is_object ( $ input ) ) { if ( $ input instanceof self ) { $ class = $ input -> classGet ( ) ; } else { $ class = get_class ( $ input ) ; } } else { $ class = $ input ; } $ currentClass = $ this -> classGet ( ) ; if ( $ currentClass ) { if ( $ class !== $ currentClass ) { throw new \ LogicException ( "Container has a class already ({$currentClass}) and it differs from your new one ({$class})" ) ; } return false ; } $ this -> class = $ class ; return true ; }
Set a containers class
@param string|Object|Repository|Container class
@return bool
Set a containers class