public function stack($types = [])
    {
        if (is_string($types)) {
            $types = explode(',', $types) ?: [];
            $types = array_filter(array_map('trim', $types));
        }

        $files = $this->stack->getList($types);

        return $files;
    }
public function stack($types = [])
    {
        if (is_string($types)) {
            $types = explode(',', $types) ?: [];
            $types = array_filter(array_map('trim', $types));
        }

        $files = $this->stack->getList($types);

        return $files;
    }
public function stack ( $ types = [ ] ) { if ( is_string ( $ types ) ) { $ types = explode ( ',' , $ types ) ? : [ ] ; $ types = array_filter ( array_map ( 'trim' , $ types ) ) ; } $ files = $ this -> stack -> getList ( $ types ) ; return $ files ; }
Return an array with the items on the stack.

@param array|string $types

@return array An array of items
Return an array with the items on the stack .