src/Services/LikeableService.php
private function likeTypeRelations($type)
    {
        $relations = [
            LikeType::LIKE => [
                'likes',
                'likesAndDislikes',
            ],
            LikeType::DISLIKE => [
                'dislikes',
                'likesAndDislikes',
            ],
        ];

        if (!isset($relations[$type])) {
            throw new LikeTypeInvalidException("Like type `{$type}` not supported");
        }

        return $relations[$type];
    }
private function likeTypeRelations($type)
    {
        $relations = [
            LikeType::LIKE => [
                'likes',
                'likesAndDislikes',
            ],
            LikeType::DISLIKE => [
                'dislikes',
                'likesAndDislikes',
            ],
        ];

        if (!isset($relations[$type])) {
            throw new LikeTypeInvalidException("Like type `{$type}` not supported");
        }

        return $relations[$type];
    }
private function likeTypeRelations ( $ type ) { $ relations = [ LikeType :: LIKE => [ 'likes' , 'likesAndDislikes' , ] , LikeType :: DISLIKE => [ 'dislikes' , 'likesAndDislikes' , ] , ] ; if ( ! isset ( $ relations [ $ type ] ) ) { throw new LikeTypeInvalidException ( "Like type `{$type}` not supported" ) ; } return $ relations [ $ type ] ; }
Resolve list of likeable relations by like type.

@param string $type
@return array

@throws \Cog\Likeable\Exceptions\LikeTypeInvalidException
Resolve list of likeable relations by like type .