src/DataListTrait.php
public function pop()
    {
        $this->internalDataListUpdate();
        if (isset($this->internalDataListData[0])) {
            $this->internalDataListUpdateValueIfNeeded($this->internalDataListData, sizeof($this->internalDataListData) - 1);
            return array_pop($this->internalDataListData);
        }
        return null;
    }
public function pop()
    {
        $this->internalDataListUpdate();
        if (isset($this->internalDataListData[0])) {
            $this->internalDataListUpdateValueIfNeeded($this->internalDataListData, sizeof($this->internalDataListData) - 1);
            return array_pop($this->internalDataListData);
        }
        return null;
    }
public function pop ( ) { $ this -> internalDataListUpdate ( ) ; if ( isset ( $ this -> internalDataListData [ 0 ] ) ) { $ this -> internalDataListUpdateValueIfNeeded ( $ this -> internalDataListData , sizeof ( $ this -> internalDataListData ) - 1 ) ; return array_pop ( $ this -> internalDataListData ) ; } return null ; }
Pops an object off the end of the list.

@return object|null Returns the popped object or null if the list is empty.
@throws \InvalidArgumentException
Pops an object off the end of the list .