service/models/StoredContent.php
/**
     * Returns stored content for link
     *
     * @param  Link   $link
     * @return StoredContent|null
     */
Returns stored content for link
@param  Link   $link
@return StoredContent|null
Returns stored content for link @param Link $link @return StoredContent|null
public static function findByLink(Link $link)
    {
        return static::find()->where(['ext_url' => $link->getLink()])
            ->andWhere(['name' => $link->content_name])
            ->andWhere(['size' => $link->content_size])
            ->one();
    }
public static function findByLink ( Link $ link ) { return static :: find ( ) -> where ( [ 'ext_url' => $ link -> getLink ( ) ] ) -> andWhere ( [ 'name' => $ link -> content_name ] ) -> andWhere ( [ 'size' => $ link -> content_size ] ) -> one ( ) ; }
Returns stored content for link
 @param  Link   $link
 @return StoredContent|null
Returns stored content for link @param Link $link @return StoredContent|null