src/Charcoal/Model/Service/ModelLoader.php
private function setObjKey($objKey)
    {
        if (empty($objKey) && !is_numeric($objKey)) {
            $this->objKey = null;
            return $this;
        }

        if (!is_string($objKey)) {
            throw new InvalidArgumentException(
                'Can not set model loader object type: not a string'
            );
        }

        $this->objKey = $objKey;
        return $this;
    }
private function setObjKey($objKey)
    {
        if (empty($objKey) && !is_numeric($objKey)) {
            $this->objKey = null;
            return $this;
        }

        if (!is_string($objKey)) {
            throw new InvalidArgumentException(
                'Can not set model loader object type: not a string'
            );
        }

        $this->objKey = $objKey;
        return $this;
    }
private function setObjKey ( $ objKey ) { if ( empty ( $ objKey ) && ! is_numeric ( $ objKey ) ) { $ this -> objKey = null ; return $ this ; } if ( ! is_string ( $ objKey ) ) { throw new InvalidArgumentException ( 'Can not set model loader object type: not a string' ) ; } $ this -> objKey = $ objKey ; return $ this ; }
Set the object key.

@param  string $objKey The object key to use for laoding.
@throws InvalidArgumentException If the object key is not a string.
@return ModelLoader Chainable
Set the object key .