src/Charcoal/Admin/Ui/ObjectContainerTrait.php
public function setObjId($objId)
    {
        if (!is_scalar($objId)) {
            throw new InvalidArgumentException(sprintf(
                'Object ID must be a string or numerical value, received %s.',
                (is_object($objId) ? get_class($objId) : gettype($objId))
            ));
        }

        $this->objId = $objId;

        return $this;
    }
public function setObjId($objId)
    {
        if (!is_scalar($objId)) {
            throw new InvalidArgumentException(sprintf(
                'Object ID must be a string or numerical value, received %s.',
                (is_object($objId) ? get_class($objId) : gettype($objId))
            ));
        }

        $this->objId = $objId;

        return $this;
    }
public function setObjId ( $ objId ) { if ( ! is_scalar ( $ objId ) ) { throw new InvalidArgumentException ( sprintf ( 'Object ID must be a string or numerical value, received %s.' , ( is_object ( $ objId ) ? get_class ( $ objId ) : gettype ( $ objId ) ) ) ) ; } $ this -> objId = $ objId ; return $ this ; }
Set the object ID.

@param  string|numeric $objId The object ID to load.
@throws InvalidArgumentException If provided argument is not of type 'scalar'.
@return ObjectContainerInterface Chainable
Set the object ID .