Skip to content

Commit

Permalink
Merge pull request #47 from spryker-middleware/bugfix/interfaces
Browse files Browse the repository at this point in the history
Fix api annotations.
  • Loading branch information
dereuromark authored Sep 7, 2018
2 parents 2e592af + 7a744ef commit d5f23d2
Show file tree
Hide file tree
Showing 73 changed files with 315 additions and 20 deletions.
4 changes: 0 additions & 4 deletions src/SprykerMiddleware/Service/Process/Model/StreamService.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ class StreamService implements StreamServiceInterface
/**
* Stream service
*
* @api
*
* @param \SprykerMiddleware\Shared\Process\Stream\ReadStreamInterface $stream
*
* @return mixed
Expand All @@ -29,8 +27,6 @@ public function read(ReadStreamInterface $stream)
/**
* Stream service
*
* @api
*
* @param \SprykerMiddleware\Shared\Process\Stream\WriteStreamInterface $stream
* @param array $data
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ interface StreamServiceInterface
/**
* Stream service interface.
*
* @api
*
* @param \SprykerMiddleware\Shared\Process\Stream\ReadStreamInterface $stream
*
* @return mixed
Expand All @@ -26,8 +24,6 @@ public function read(ReadStreamInterface $stream);
/**
* Stream service interface.
*
* @api
*
* @param \SprykerMiddleware\Shared\Process\Stream\WriteStreamInterface $stream
* @param mixed $data
*
Expand Down
3 changes: 0 additions & 3 deletions src/SprykerMiddleware/Service/Process/ProcessService.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ class ProcessService extends AbstractService implements ProcessServiceInterface
/**
* {@inheritdoc}
*
* @api
*
* @param \SprykerMiddleware\Shared\Process\Stream\ReadStreamInterface $stream
*
* @return mixed
Expand All @@ -35,7 +33,6 @@ public function read(ReadStreamInterface $stream)
/**
* {@inheritdoc}
*
* @api
*
* @param \SprykerMiddleware\Shared\Process\Stream\WriteStreamInterface $stream
* @param mixed $data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ interface ProcessServiceInterface
* Specification:
* - Read data from given stream.
*
* @api
*
* @param \SprykerMiddleware\Shared\Process\Stream\ReadStreamInterface $stream
*
* @return mixed
Expand All @@ -28,8 +26,6 @@ public function read(ReadStreamInterface $stream);
* Specification:
* - Write given data to given stream.
*
* @api
*
* @param \SprykerMiddleware\Shared\Process\Stream\WriteStreamInterface $stream
* @param mixed $data
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
class DefaultConfigurationProfilePlugin extends AbstractPlugin implements ConfigurationProfilePluginInterface
{
/**
* @api
*
* @return \SprykerMiddleware\Zed\Process\Dependency\Plugin\Configuration\ProcessConfigurationPluginInterface[]
*/
public function getProcessConfigurationPlugins(): array
Expand All @@ -26,6 +28,8 @@ public function getProcessConfigurationPlugins(): array
}

/**
* @api
*
* @return \SprykerMiddleware\Zed\Process\Dependency\Plugin\TranslatorFunction\TranslatorFunctionPluginInterface[]
*/
public function getTranslatorFunctionPlugins(): array
Expand All @@ -35,6 +39,8 @@ public function getTranslatorFunctionPlugins(): array
}

/**
* @api
*
* @return \SprykerMiddleware\Zed\Process\Dependency\Plugin\Validator\ValidatorPluginInterface[]
*/
public function getValidatorPlugins(): array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ protected function getHandler(): AbstractHandler
}

/**
* @api
*
* @param array $record
*
* @return bool
Expand All @@ -47,6 +49,8 @@ public function isHandling(array $record): bool
}

/**
* @api
*
* @param array $record
*
* @return bool
Expand All @@ -57,6 +61,8 @@ public function handle(array $record): bool
}

/**
* @api
*
* @param array $records
*
* @return void
Expand All @@ -67,6 +73,8 @@ public function handleBatch(array $records): void
}

/**
* @api
*
* @param callable $callback
*
* @return \Monolog\Handler\HandlerInterface
Expand All @@ -77,6 +85,8 @@ public function pushProcessor($callback): HandlerInterface
}

/**
* @api
*
* @return callable
*/
public function popProcessor(): callable
Expand All @@ -85,6 +95,8 @@ public function popProcessor(): callable
}

/**
* @api
*
* @param \Monolog\Formatter\FormatterInterface $formatter
*
* @return \Monolog\Handler\HandlerInterface
Expand All @@ -95,6 +107,8 @@ public function setFormatter(FormatterInterface $formatter): HandlerInterface
}

/**
* @api
*
* @return \Monolog\Formatter\FormatterInterface
*/
public function getFormatter(): FormatterInterface
Expand All @@ -103,6 +117,8 @@ public function getFormatter(): FormatterInterface
}

/**
* @api
*
* @param int|string $level
*
* @return \Monolog\Handler\HandlerInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class JsonDirectoryIteratorPlugin extends AbstractPlugin implements ProcessItera
protected const PLUGIN_NAME = 'JsonDirectoryIteratorPlugin';

/**
* @api
*
* @param \SprykerMiddleware\Shared\Process\Stream\ReadStreamInterface $inStream
* @param \Generated\Shared\Transfer\IteratorConfigTransfer $iteratorConfigTransfer
*
Expand All @@ -35,6 +37,8 @@ public function getIterator(ReadStreamInterface $inStream, IteratorConfigTransfe
}

/**
* @api
*
* @return string
*/
public function getName(): string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class NullIteratorPlugin extends AbstractPlugin implements ProcessIteratorPlugin
protected const PLUGIN_NAME = 'NullIteratorPlugin';

/**
* @api
*
* @param \SprykerMiddleware\Shared\Process\Stream\ReadStreamInterface $inStream
* @param \Generated\Shared\Transfer\IteratorConfigTransfer $iteratorConfigTransfer
*
Expand All @@ -35,6 +37,8 @@ public function getIterator(ReadStreamInterface $inStream, IteratorConfigTransfe
}

/**
* @api
*
* @return string
*/
public function getName(): string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class MiddlewareLoggerConfigPlugin extends AbstractPlugin implements MiddlewareL
protected $handlers;

/**
* @api
*
* @return string
*/
public function getChannelName(): string
Expand All @@ -33,6 +35,8 @@ public function getChannelName(): string
}

/**
* @api
*
* @return \Monolog\Handler\AbstractHandler[]
*/
public function getHandlers(): array
Expand All @@ -45,6 +49,8 @@ public function getHandlers(): array
}

/**
* @api
*
* @return callable[]
*/
public function getProcessors(): array
Expand All @@ -55,6 +61,8 @@ public function getProcessors(): array
/**
* Sets minimum logging level at which all handlers will be triggered.
*
* @api
*
* @param int|string $level Level or level name
*
* @return void
Expand All @@ -68,6 +76,8 @@ public function changeLogLevel($level): void
}

/**
* @api
*
* @return string
*/
public function getName(): string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
class ArrayMapRulePlugin extends AbstractPlugin implements MapRulePluginInterface
{
/**
* @api
*
* @param array $result
* @param array $payload
* @param string $key
Expand All @@ -32,6 +34,8 @@ public function map(array $result, array $payload, string $key, $value, string $
}

/**
* @api
*
* @param string $key
* @param mixed $value
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
class ClosureMapRulePlugin extends AbstractPlugin implements MapRulePluginInterface
{
/**
* @api
*
* @param array $result
* @param array $payload
* @param string $key
Expand All @@ -32,6 +34,8 @@ public function map(array $result, array $payload, string $key, $value, string $
}

/**
* @api
*
* @param string $key
* @param mixed $value
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class DynamicArrayMapRulePlugin extends AbstractPlugin implements MapRulePluginI
use MiddlewareLoggerTrait;

/**
* @api
*
* @param array $result
* @param array $payload
* @param string $key
Expand All @@ -35,6 +37,8 @@ public function map(array $result, array $payload, string $key, $value, string $
}

/**
* @api
*
* @param string $key
* @param mixed $value
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
class DynamicMapRulePlugin extends AbstractPlugin implements MapRulePluginInterface
{
/**
* @api
*
* @param array $result
* @param array $payload
* @param string $key
Expand All @@ -31,6 +33,8 @@ public function map(array $result, array $payload, string $key, $value, string $
}

/**
* @api
*
* @param string $key
* @param mixed $value
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
class KeyMapRulePlugin extends AbstractPlugin implements MapRulePluginInterface
{
/**
* @api
*
* @param array $result
* @param array $payload
* @param string $key
Expand All @@ -31,6 +33,8 @@ public function map(array $result, array $payload, string $key, $value, string $
}

/**
* @api
*
* @param string $key
* @param mixed $value
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
class IntrospectionProcessorPlugin extends AbstractPlugin implements LogProcessorPluginInterface
{
/**
* @api
*
* @param array $data
*
* @return array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class CsvInputStreamPlugin extends AbstractPlugin implements InputStreamPluginIn
protected const PLUGIN_NAME = 'CsvInputStreamPlugin';

/**
* @api
*
* @return string
*/
public function getName(): string
Expand All @@ -28,6 +30,8 @@ public function getName(): string
}

/**
* @api
*
* @param string $path
*
* @return \SprykerMiddleware\Shared\Process\Stream\ReadStreamInterface
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class CsvOutputStreamPlugin extends AbstractPlugin implements OutputStreamPlugin
protected const PLUGIN_NAME = 'CsvOutputStreamPlugin';

/**
* @api
*
* @return string
*/
public function getName(): string
Expand All @@ -28,6 +30,8 @@ public function getName(): string
}

/**
* @api
*
* @param string $path
*
* @return \SprykerMiddleware\Shared\Process\Stream\WriteStreamInterface
Expand Down
Loading

0 comments on commit d5f23d2

Please sign in to comment.