generated from ibexa/bundle-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
101 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
...b/Rule/Internal/RemoveInterfaceWithMethods/Fixture/class_with_removed_method_call.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<?php /** @noinspection ALL */ | ||
|
||
use Ibexa\Rector\Tests\Rule\Internal\RemoveInterfaceWithMethods\Fixture\SomeInterface; | ||
use Symfony\Component\Console\Command\Command; | ||
|
||
class SomeClass implements SomeInterface | ||
{ | ||
public function firstMethod(): void | ||
{ | ||
|
||
} | ||
|
||
public function configure() | ||
{ | ||
$this->firstMethod()->firstMethod($this->someMethod())->thirdMethod(); | ||
} | ||
|
||
public function someMethod(): array | ||
{ | ||
return ['ezplatform:some_old:command_with_interface']; | ||
} | ||
|
||
public function thirdMethod(): void | ||
{ | ||
|
||
} | ||
} | ||
|
||
?> | ||
----- | ||
<?php /** @noinspection ALL */ | ||
|
||
use Ibexa\Rector\Tests\Rule\Internal\RemoveInterfaceWithMethods\Fixture\SomeInterface; | ||
use Symfony\Component\Console\Command\Command; | ||
|
||
class SomeClass | ||
{ | ||
public function firstMethod(): void | ||
{ | ||
|
||
} | ||
public function configure() | ||
{ | ||
$this->firstMethod()->thirdMethod(); | ||
} | ||
public function thirdMethod(): void | ||
{ | ||
|
||
} | ||
} | ||
|
||
?> |