src/DataListTrait.php
public function getLast()
    {
        $this->internalDataListUpdate();
        $count = sizeof($this->internalDataListData);
        if (isset($this->internalDataListData[$count - 1])) {
            return $this->internalDataListUpdateValueIfNeeded($this->internalDataListData, $count - 1);
        }
        return null;
    }
public function getLast()
    {
        $this->internalDataListUpdate();
        $count = sizeof($this->internalDataListData);
        if (isset($this->internalDataListData[$count - 1])) {
            return $this->internalDataListUpdateValueIfNeeded($this->internalDataListData, $count - 1);
        }
        return null;
    }
public function getLast ( ) { $ this -> internalDataListUpdate ( ) ; $ count = sizeof ( $ this -> internalDataListData ) ; if ( isset ( $ this -> internalDataListData [ $ count - 1 ] ) ) { return $ this -> internalDataListUpdateValueIfNeeded ( $ this -> internalDataListData , $ count - 1 ) ; } return null ; }
Returns the last object or null if not found.

@return object|null The last object or null if not found.
@throws \InvalidArgumentException
Returns the last object or null if not found .