public function getDefinition($mosaic)
    {
        if (! $this->count()) {
            return false;
        }

        $mosaic = $this->prepareMosaic($mosaic);
        foreach ($this->all() as $definition) {
            if ($mosaic->getFQN() != $definition->id()->getFQN()) {
                continue;
            }

            return $definition;
        }

        return false;
    }
public function getDefinition($mosaic)
    {
        if (! $this->count()) {
            return false;
        }

        $mosaic = $this->prepareMosaic($mosaic);
        foreach ($this->all() as $definition) {
            if ($mosaic->getFQN() != $definition->id()->getFQN()) {
                continue;
            }

            return $definition;
        }

        return false;
    }
public function getDefinition ( $ mosaic ) { if ( ! $ this -> count ( ) ) { return false ; } $ mosaic = $ this -> prepareMosaic ( $ mosaic ) ; foreach ( $ this -> all ( ) as $ definition ) { if ( $ mosaic -> getFQN ( ) != $ definition -> id ( ) -> getFQN ( ) ) { continue ; } return $ definition ; } return false ; }
This method will find a said `MosaicDefinition` for the
given `mosaic` in the current definitions collection.

@param   string|\NEM\Models\Mosaic   $mosaic
@return  false|\NEM\Models\MosaicDefinition
This method will find a said MosaicDefinition for the given mosaic in the current definitions collection .