. */ namespace SP\Services; use Psr\Container\ContainerExceptionInterface; use Psr\Container\NotFoundExceptionInterface; use SP\Bootstrap; use SP\DataModel\DataModelInterface; /** * Trait ServiceItemTrait * * @package SP\Services */ trait ServiceItemTrait { /** * Returns service items for a select * * @return DataModelInterface[] * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface */ public static function getItemsBasic() { return Bootstrap::getContainer()->get(static::class)->getAllBasic(); } /** * Get all items from the service's repository * * @return mixed */ abstract public function getAllBasic(); }