src/Manager.php
public function addObject($objectValue, $filters)
    {
        if (empty($objectValue)) {
            throw new \Exception("Failed to add empty object value!");
        }

        $object = null;
        if (strpos($objectValue, 'http') !== false) {
            /**
             * @var \Slab\Concatenator\Items\Base $object
             */
            $object = new Items\URL();
        } else {
            /**
             * @var \Slab\Concatenator\Items\Base $object
             */
            $object = new Items\File($this->fileSearchDirectories);
        }

        $object->initialize($objectValue, $filters);

        $this->objectList[] = $object;

        return $this;
    }
public function addObject($objectValue, $filters)
    {
        if (empty($objectValue)) {
            throw new \Exception("Failed to add empty object value!");
        }

        $object = null;
        if (strpos($objectValue, 'http') !== false) {
            /**
             * @var \Slab\Concatenator\Items\Base $object
             */
            $object = new Items\URL();
        } else {
            /**
             * @var \Slab\Concatenator\Items\Base $object
             */
            $object = new Items\File($this->fileSearchDirectories);
        }

        $object->initialize($objectValue, $filters);

        $this->objectList[] = $object;

        return $this;
    }
public function addObject ( $ objectValue , $ filters ) { if ( empty ( $ objectValue ) ) { throw new \ Exception ( "Failed to add empty object value!" ) ; } $ object = null ; if ( strpos ( $ objectValue , 'http' ) !== false ) { /**
             * @var \Slab\Concatenator\Items\Base $object
             */ $ object = new Items \ URL ( ) ; } else { /**
             * @var \Slab\Concatenator\Items\Base $object
             */ $ object = new Items \ File ( $ this -> fileSearchDirectories ) ; } $ object -> initialize ( $ objectValue , $ filters ) ; $ this -> objectList [ ] = $ object ; return $ this ; }
Add an object to the list

@param $objectValue
@param $filters
@return $this
Add an object to the list