public function setCreator($objectOrId)
    {
        $this->dropCachedProperty('creator');
        if (!$objectOrId instanceof Account) {
            $objectOrId = new Account(['id' => $objectOrId]);
        }

        $this->setValue('creator', $objectOrId->export());
    }
public function setCreator($objectOrId)
    {
        $this->dropCachedProperty('creator');
        if (!$objectOrId instanceof Account) {
            $objectOrId = new Account(['id' => $objectOrId]);
        }

        $this->setValue('creator', $objectOrId->export());
    }
public function setCreator ( $ objectOrId ) { $ this -> dropCachedProperty ( 'creator' ) ; if ( ! $ objectOrId instanceof Account ) { $ objectOrId = new Account ( [ 'id' => $ objectOrId ] ) ; } $ this -> setValue ( 'creator' , $ objectOrId -> export ( ) ) ; }
Set Item creator.

@param Account|string $objectOrId User or his ID.

@throws \InvalidArgumentException

@since 0.1
Set Item creator .