🚧 Add Map class
This commit is contained in:
parent
892265dcec
commit
2ed5a4f4f4
2 changed files with 84 additions and 17 deletions
28
src/Map.php
Normal file
28
src/Map.php
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
namespace Danjones\FFMpeg;
|
||||
|
||||
class Map
|
||||
{
|
||||
protected MappableMedia $media;
|
||||
protected string $path;
|
||||
|
||||
public function __construct(MappableMedia $media)
|
||||
{
|
||||
$this->media = $media;
|
||||
}
|
||||
|
||||
public function saveMap(): MappableMedia
|
||||
{
|
||||
$this->media->saveMap($this);
|
||||
|
||||
return $this->media;
|
||||
}
|
||||
|
||||
public function saveAs(string $path): static
|
||||
{
|
||||
$this->path = $path;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue