Security update for Core, with self-updated composer
[yaffs-website] / vendor / consolidation / output-formatters / src / StructuredData / AbstractStructuredList.php
index fb1bc5375ff23d035d2b85a9264278880294a204..ee09a5a4ac9b4977fa5154f60e06bbb917cb599a 100644 (file)
@@ -14,10 +14,9 @@ use Consolidation\OutputFormatters\Transformations\TableTransformation;
  *
  * It is presumed that every row contains the same keys.
  */
-abstract class AbstractStructuredList extends \ArrayObject implements RestructureInterface, ListDataInterface, RenderCellCollectionInterface
+abstract class AbstractStructuredList extends ListDataFromKeys implements RestructureInterface, RenderCellCollectionInterface
 {
     use RenderCellCollectionTrait;
-    protected $data;
 
     public function __construct($data)
     {
@@ -26,8 +25,6 @@ abstract class AbstractStructuredList extends \ArrayObject implements Restructur
 
     abstract public function restructure(FormatterOptions $options);
 
-    abstract public function getListData(FormatterOptions $options);
-
     protected function createTableTransformation($data, $options)
     {
         $defaults = $this->defaultOptions();