irishdan /
ResponsiveImageBundle
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * This file is part of the IrishDan\ResponsiveImageBundle package. |
||
| 4 | * |
||
| 5 | * (c) Daniel Byrne <[email protected]> |
||
| 6 | * |
||
| 7 | * For the full copyright and license information, please view the LICENSE file that was distributed with this source |
||
| 8 | * code. |
||
| 9 | */ |
||
| 10 | |||
| 11 | namespace IrishDan\ResponsiveImageBundle\Repository; |
||
| 12 | |||
| 13 | use Doctrine\ORM\EntityRepository; |
||
| 14 | use IrishDan\ResponsiveImageBundle\ResponsiveImageRepositoryInterface; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Class ImageRepository |
||
| 18 | * |
||
| 19 | * @package IrishDan\ResponsiveImageBundle\Repository |
||
| 20 | */ |
||
| 21 | class ImageRepository extends EntityRepository implements ResponsiveImageRepositoryInterface |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @param $filename |
||
| 25 | * |
||
| 26 | * @return mixed |
||
| 27 | */ |
||
| 28 | public function findImageFromFilename($filename) |
||
| 29 | { |
||
| 30 | return $this->findOneByPath($filename); |
||
|
0 ignored issues
–
show
|
|||
| 31 | } |
||
| 32 | } |
||
| 33 |
If you implement
__calland you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__callis implemented by a parent class and only the child class knows which methods exist: