Initial commit

This commit is contained in:
gustavooth
2026-07-23 22:56:30 -03:00
commit 22a1006598
1816 changed files with 410742 additions and 0 deletions
@@ -0,0 +1,14 @@
<?php
namespace FluentMail\Includes\Support\Contracts;
interface ArrayableInterface {
/**
* Get the instance as an array.
*
* @return array
*/
public function toArray();
}
@@ -0,0 +1,22 @@
<?php
namespace FluentMail\Includes\Support\Contracts;
interface ContextualBindingBuilderContract
{
/**
* Define the abstract target that depends on the context.
*
* @param string $abstract
* @return $this
*/
public function needs($abstract);
/**
* Define the implementation for the contextual binding.
*
* @param Closure|string $implementation
* @return void
*/
public function give($implementation);
}
@@ -0,0 +1,34 @@
<?php
namespace FluentMail\Includes\Support\Contracts;
interface FileInterface
{
/**
* Returns whether the file was uploaded successfully.
*
* @return bool
*/
public function isValid();
/**
* Gets the path without filename
*
* @return string
*/
public function getPath();
/**
* Take an educated guess of the file's extension.
*
* @return mixed|null
*/
public function guessExtension();
/**
* Returns the original file extension.
*
* @return string
*/
public function getClientOriginalExtension();
}
@@ -0,0 +1,15 @@
<?php
namespace FluentMail\Includes\Support\Contracts;
interface JsonableInterface {
/**
* Convert the object to its JSON representation.
*
* @param int $options
* @return string
*/
public function toJson($options = 0);
}