Skip to content

AbstractFractal

  • Full name: \Zemit\Mvc\Controller\Traits\Abstracts\AbstractFractal

Methods

getFractalManager

public getFractalManager(): \Zemit\Fractal\Manager
  • This method is abstract.

setFractalManager

public setFractalManager(?\Zemit\Fractal\Manager $manager): void
  • This method is abstract.

Parameters:

Parameter Type Description
$manager ?\Zemit\Fractal\Manager

getFractalSerializer

public getFractalSerializer(): \League\Fractal\Serializer\SerializerAbstract
  • This method is abstract.

setFractalSerializer

public setFractalSerializer(\League\Fractal\Serializer\SerializerAbstract $serializer): void
  • This method is abstract.

Parameters:

Parameter Type Description
$serializer \League\Fractal\Serializer\SerializerAbstract

getTransformer

public getTransformer(): \League\Fractal\TransformerAbstract
  • This method is abstract.

setTransformer

public setTransformer(?\League\Fractal\TransformerAbstract $transformer = null): void
  • This method is abstract.

Parameters:

Parameter Type Description
$transformer ?\League\Fractal\TransformerAbstract

hasTransformer

public hasTransformer(): bool
  • This method is abstract.

transformModel

public transformModel(\Phalcon\Mvc\ModelInterface $model, ?\League\Fractal\TransformerAbstract $transformer = null, ?\Zemit\Fractal\Manager $fractalManager = null): ?array
  • This method is abstract.

Parameters:

Parameter Type Description
$model \Phalcon\Mvc\ModelInterface
$transformer ?\League\Fractal\TransformerAbstract
$fractalManager ?\Zemit\Fractal\Manager

transformResultset

public transformResultset(\Phalcon\Mvc\Model\ResultsetInterface $resultset, ?\League\Fractal\TransformerAbstract $transformer = null, ?\Zemit\Fractal\Manager $fractalManager = null): ?array
  • This method is abstract.

Parameters:

Parameter Type Description
$resultset \Phalcon\Mvc\Model\ResultsetInterface
$transformer ?\League\Fractal\TransformerAbstract
$fractalManager ?\Zemit\Fractal\Manager

transformItem

public transformItem(mixed $data, ?\League\Fractal\TransformerAbstract $transformer = null, ?\Zemit\Fractal\Manager $fractalManager = null): ?array
  • This method is abstract.

Parameters:

Parameter Type Description
$data mixed
$transformer ?\League\Fractal\TransformerAbstract
$fractalManager ?\Zemit\Fractal\Manager

transformCollection

public transformCollection(mixed $data, ?\League\Fractal\TransformerAbstract $transformer = null, ?\Zemit\Fractal\Manager $fractalManager = null): ?array
  • This method is abstract.

Parameters:

Parameter Type Description
$data mixed
$transformer ?\League\Fractal\TransformerAbstract
$fractalManager ?\Zemit\Fractal\Manager