src/DataListTrait.php
public function push($object): self
    {
        $this->internalDataListUpdate();
        array_push($this->internalDataListData, $object);
        return $this;
    }
public function push($object): self
    {
        $this->internalDataListUpdate();
        array_push($this->internalDataListData, $object);
        return $this;
    }
public function push ( $ object ) : self { $ this -> internalDataListUpdate ( ) ; array_push ( $ this -> internalDataListData , $ object ) ; return $ this ; }
Pushes an object onto the end of the list.

@param object|array $object The data to be pushed.
@return self A reference to the list.
@throws \InvalidArgumentException
Pushes an object onto the end of the list .