classes/collection/ElementCollection.php
public function pop()
    {
        if ($this->isEmpty()) {
            return $this->makeItem(null);
        }

        $iElementID = array_pop($this->arElementIDList);

        return $this->makeItem($iElementID);
    }
public function pop()
    {
        if ($this->isEmpty()) {
            return $this->makeItem(null);
        }

        $iElementID = array_pop($this->arElementIDList);

        return $this->makeItem($iElementID);
    }
public function pop ( ) { if ( $ this -> isEmpty ( ) ) { return $ this -> makeItem ( null ) ; } $ iElementID = array_pop ( $ this -> arElementIDList ) ; return $ this -> makeItem ( $ iElementID ) ; }
Apply array_pop to element ID list and get first element item
@see  \Lovata\Toolbox\Tests\Unit\CollectionTest::testPopMethod()
@link https://github.com/lovata/oc-toolbox-plugin/wiki/ElementCollection#pop
@return \Lovata\Toolbox\Classes\Item\ElementItem|null
Apply array_pop to element ID list and get first element item