forked from wallabag/wallabag
Clean PHPStan baseline
This commit is contained in:
@ -65,7 +65,7 @@ abstract class AbstractImport implements ImportInterface
|
||||
*
|
||||
* @param bool $markAsRead
|
||||
*/
|
||||
public function setMarkAsRead($markAsRead)
|
||||
public function setMarkAsRead($markAsRead): static
|
||||
{
|
||||
$this->markAsRead = $markAsRead;
|
||||
|
||||
@ -101,6 +101,11 @@ abstract class AbstractImport implements ImportInterface
|
||||
];
|
||||
}
|
||||
|
||||
public function setFilepath($filepath): static
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse one entry.
|
||||
*
|
||||
|
||||
@ -53,7 +53,7 @@ abstract class BrowserImport extends AbstractImport
|
||||
*
|
||||
* @param string $filepath
|
||||
*/
|
||||
public function setFilepath($filepath)
|
||||
public function setFilepath($filepath): static
|
||||
{
|
||||
$this->filepath = $filepath;
|
||||
|
||||
|
||||
@ -28,7 +28,7 @@ class DeliciousImport extends AbstractImport
|
||||
*
|
||||
* @param string $filepath
|
||||
*/
|
||||
public function setFilepath($filepath)
|
||||
public function setFilepath($filepath): static
|
||||
{
|
||||
$this->filepath = $filepath;
|
||||
|
||||
|
||||
@ -64,7 +64,7 @@ abstract class HtmlImport extends AbstractImport
|
||||
*
|
||||
* @param string $filepath
|
||||
*/
|
||||
public function setFilepath($filepath)
|
||||
public function setFilepath($filepath): static
|
||||
{
|
||||
$this->filepath = $filepath;
|
||||
|
||||
|
||||
@ -3,6 +3,7 @@
|
||||
namespace Wallabag\Import;
|
||||
|
||||
use Psr\Log\LoggerAwareInterface;
|
||||
use Wallabag\Entity\User;
|
||||
|
||||
interface ImportInterface extends LoggerAwareInterface
|
||||
{
|
||||
@ -42,4 +43,24 @@ interface ImportInterface extends LoggerAwareInterface
|
||||
* @return array
|
||||
*/
|
||||
public function getSummary();
|
||||
|
||||
/**
|
||||
* Set current user.
|
||||
* Could the current *connected* user or one retrieve by the consumer.
|
||||
*/
|
||||
public function setUser(User $user);
|
||||
|
||||
/**
|
||||
* Set file path to the json file.
|
||||
*
|
||||
* @param string $filepath
|
||||
*/
|
||||
public function setFilepath($filepath): static;
|
||||
|
||||
/**
|
||||
* Set whether articles must be all marked as read.
|
||||
*
|
||||
* @param bool $markAsRead
|
||||
*/
|
||||
public function setMarkAsRead($markAsRead): static;
|
||||
}
|
||||
|
||||
@ -28,7 +28,7 @@ class InstapaperImport extends AbstractImport
|
||||
*
|
||||
* @param string $filepath
|
||||
*/
|
||||
public function setFilepath($filepath)
|
||||
public function setFilepath($filepath): static
|
||||
{
|
||||
$this->filepath = $filepath;
|
||||
|
||||
|
||||
@ -28,7 +28,7 @@ class OmnivoreImport extends AbstractImport
|
||||
*
|
||||
* @param string $filepath
|
||||
*/
|
||||
public function setFilepath($filepath)
|
||||
public function setFilepath($filepath): static
|
||||
{
|
||||
$this->filepath = $filepath;
|
||||
|
||||
|
||||
@ -28,7 +28,7 @@ class PinboardImport extends AbstractImport
|
||||
*
|
||||
* @param string $filepath
|
||||
*/
|
||||
public function setFilepath($filepath)
|
||||
public function setFilepath($filepath): static
|
||||
{
|
||||
$this->filepath = $filepath;
|
||||
|
||||
|
||||
@ -28,7 +28,7 @@ class ReadabilityImport extends AbstractImport
|
||||
*
|
||||
* @param string $filepath
|
||||
*/
|
||||
public function setFilepath($filepath)
|
||||
public function setFilepath($filepath): static
|
||||
{
|
||||
$this->filepath = $filepath;
|
||||
|
||||
|
||||
@ -67,7 +67,7 @@ abstract class WallabagImport extends AbstractImport
|
||||
*
|
||||
* @param string $filepath
|
||||
*/
|
||||
public function setFilepath($filepath)
|
||||
public function setFilepath($filepath): static
|
||||
{
|
||||
$this->filepath = $filepath;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user