Skip to content

Commit

Permalink
add enums
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Aug 28, 2023
1 parent 3516cae commit 09c3234
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Enums/CropPosition.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace Spatie\Image\Enums;

enum CropPosition: string
{
case CropTopLeft = 'cropTopLeft';
case CropTop = 'cropTop';
case CropTopRight = 'cropTopRight';
case CropLeft = 'cropLeft';
case CropCenter = 'cropCenter';
case CropRight = 'cropRight';
case CropBottomLeft = 'cropBottomLeft';
case CropBottom = 'cropBottom';
case CropBottomRight = 'cropBottomRight';

}
13 changes: 13 additions & 0 deletions src/Enums/Fit.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace Spatie\Image\Enums;

enum Fit: string
{
case Contain = 'contain';
case Max = 'max';
case Fill = 'fill';
case Stretch = 'stretch';
case Crop = 'crop';
case FitStretch = 'fitStretch';
}

0 comments on commit 09c3234

Please sign in to comment.