public function loadAnnotations($annotations)
    {
        $moreSettings = parse_ini_string($annotations, true) ?: [];

        if (@$guardedFields = $moreSettings['blacklist']) {
            $this->setBlacklist(explode(',', $guardedFields));
        } // if

        if (@$moreSettings['casting'] && is_array($moreSettings['casting'])) {
            $this->setCastedFields($moreSettings['casting']);
        } // if

        if (@$modelName = $moreSettings['model']) {
            $this->setModelName($modelName);
        } // if

        $this->isPivotTable(@ (bool)$moreSettings['isPivot']);
        $this->withoutTimestamps(@ (bool)$moreSettings['withoutTimestamps']);

        return !@$moreSettings['ignore'];
    }
public function loadAnnotations($annotations)
    {
        $moreSettings = parse_ini_string($annotations, true) ?: [];

        if (@$guardedFields = $moreSettings['blacklist']) {
            $this->setBlacklist(explode(',', $guardedFields));
        } // if

        if (@$moreSettings['casting'] && is_array($moreSettings['casting'])) {
            $this->setCastedFields($moreSettings['casting']);
        } // if

        if (@$modelName = $moreSettings['model']) {
            $this->setModelName($modelName);
        } // if

        $this->isPivotTable(@ (bool)$moreSettings['isPivot']);
        $this->withoutTimestamps(@ (bool)$moreSettings['withoutTimestamps']);

        return !@$moreSettings['ignore'];
    }
public function loadAnnotations ( $ annotations ) { $ moreSettings = parse_ini_string ( $ annotations , true ) ? : [ ] ; if ( @ $ guardedFields = $ moreSettings [ 'blacklist' ] ) { $ this -> setBlacklist ( explode ( ',' , $ guardedFields ) ) ; } // if if ( @ $ moreSettings [ 'casting' ] && is_array ( $ moreSettings [ 'casting' ] ) ) { $ this -> setCastedFields ( $ moreSettings [ 'casting' ] ) ; } // if if ( @ $ modelName = $ moreSettings [ 'model' ] ) { $ this -> setModelName ( $ modelName ) ; } // if $ this -> isPivotTable ( @ ( bool ) $ moreSettings [ 'isPivot' ] ) ; $ this -> withoutTimestamps ( @ ( bool ) $ moreSettings [ 'withoutTimestamps' ] ) ; return ! @ $ moreSettings [ 'ignore' ] ; }
Loads the annotations for this table.
@param string $annotations
@return bool Returns false, if this table should be ignored.
Loads the annotations for this table .