src/Charcoal/Property/Structure/StructureMetadata.php
public function setIdent($ident)
    {
        if ($ident === null) {
            $this->ident = null;
            return $this;
        }

        if (!is_string($ident)) {
            throw new InvalidArgumentException(
                sprintf(
                    '[%s] Identifier must be a string; received %s',
                    get_called_class(),
                    (is_object($ident) ? get_class($ident) : gettype($ident))
                )
            );
        }

        $this->ident = $ident;

        return $this;
    }
public function setIdent($ident)
    {
        if ($ident === null) {
            $this->ident = null;
            return $this;
        }

        if (!is_string($ident)) {
            throw new InvalidArgumentException(
                sprintf(
                    '[%s] Identifier must be a string; received %s',
                    get_called_class(),
                    (is_object($ident) ? get_class($ident) : gettype($ident))
                )
            );
        }

        $this->ident = $ident;

        return $this;
    }
public function setIdent ( $ ident ) { if ( $ ident === null ) { $ this -> ident = null ; return $ this ; } if ( ! is_string ( $ ident ) ) { throw new InvalidArgumentException ( sprintf ( '[%s] Identifier must be a string; received %s' , get_called_class ( ) , ( is_object ( $ ident ) ? get_class ( $ ident ) : gettype ( $ ident ) ) ) ) ; } $ this -> ident = $ ident ; return $ this ; }
Set the metadata identifier.

@param  string $ident The metadata identifier.
@throws InvalidArgumentException If identifier is not a string.
@return StructureMetadata Chainable
Set the metadata identifier .