public function setParentId($parentId)
    {
        return (is_string($this->parentAttribute) && !empty($this->parentAttribute)) ?
        $this->{$this->parentAttribute} = $parentId : null;
    }
public function setParentId($parentId)
    {
        return (is_string($this->parentAttribute) && !empty($this->parentAttribute)) ?
        $this->{$this->parentAttribute} = $parentId : null;
    }
public function setParentId ( $ parentId ) { return ( is_string ( $ this -> parentAttribute ) && ! empty ( $ this -> parentAttribute ) ) ? $ this -> { $ this -> parentAttribute } = $ parentId : null ; }
Set parent ID.
@param string $parentId
@return string|null null if parent attribute isn't enabled.
Set parent ID .