src/DataListTrait.php
public function getFirst()
    {
        $this->internalDataListUpdate();
        if (isset($this->internalDataListData[0])) {
            return $this->internalDataListUpdateValueIfNeeded($this->internalDataListData, 0);
        }
        return null;
    }
public function getFirst()
    {
        $this->internalDataListUpdate();
        if (isset($this->internalDataListData[0])) {
            return $this->internalDataListUpdateValueIfNeeded($this->internalDataListData, 0);
        }
        return null;
    }
public function getFirst ( ) { $ this -> internalDataListUpdate ( ) ; if ( isset ( $ this -> internalDataListData [ 0 ] ) ) { return $ this -> internalDataListUpdateValueIfNeeded ( $ this -> internalDataListData , 0 ) ; } return null ; }
Returns the first object or null if not found.

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