src/Support/Data/AbstractDataObject.php
public function clear(): DataObjectInterface
    {
        foreach ($this->getKeys() as $key) {
            $this->attributes[ $key ] = null;
        }

        return $this;
    }
public function clear(): DataObjectInterface
    {
        foreach ($this->getKeys() as $key) {
            $this->attributes[ $key ] = null;
        }

        return $this;
    }
public function clear ( ) : DataObjectInterface { foreach ( $ this -> getKeys ( ) as $ key ) { $ this -> attributes [ $ key ] = null ; } return $ this ; }
Clears the attributes.

Note that this does not reset defaults, but clears them.

@return $this
Clears the attributes .