| 1 | <?php |
||
| 7 | class FileAssetCacheRepository implements FileAssetRepository |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var \Yajra\CMS\Repositories\FileAsset\FileAssetRepository |
||
| 11 | */ |
||
| 12 | private $repository; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var \Illuminate\Contracts\Cache\Repository |
||
| 16 | */ |
||
| 17 | private $cache; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * FileAssetCacheRepository constructor. |
||
| 21 | * |
||
| 22 | * @param \Yajra\CMS\Repositories\FileAsset\FileAssetRepository $repository |
||
| 23 | * @param \Illuminate\Contracts\Cache\Repository $cache |
||
| 24 | */ |
||
| 25 | public function __construct(FileAssetRepository $repository, Cache $cache) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Get all file assets. |
||
| 33 | * |
||
| 34 | * @return \Illuminate\Database\Eloquent\Collection|static[] |
||
| 35 | */ |
||
| 36 | public function all() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Register admin required assets. |
||
| 45 | */ |
||
| 46 | public function registerAdminRequireAssets() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Get file asset by name. |
||
| 53 | * |
||
| 54 | * @param string $name |
||
| 55 | * @return FileAsset |
||
| 56 | */ |
||
| 57 | public function getByName($name) |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Add site asset. |
||
| 64 | * |
||
| 65 | * @param string $type |
||
| 66 | * @return \Roumen\Asset\Asset; |
||
|
|
|||
| 67 | */ |
||
| 68 | public function addAsset($type) |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @param string $str |
||
| 75 | * @return string |
||
| 76 | */ |
||
| 77 | public function strParser($str) |
||
| 81 | } |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.