Git Product home page Git Product logo

testmoviecollection's Introduction

Thank you for your interest in one of our PHP developer positions.

The next step in our recruitment process is to get a better feel for your ability in PHP. Please complete the task below and reply with a link to a Github gist of your submission (ideally log in to Github and make it a secret gist).

#Task

Imagine you are going to build an application to showcase your personal Movie collection. At the heart of this we will need to model a number of entities, although for this task we are only interested in Movies and Actors.

Therefore, create a number of PHP classes that represent these entities and satisfy the following criteria.

  1. Each entity must have a unique identifier.
  2. The Movie entity must hold the title, runtime and release date.
  3. The Actor entity must hold the name and date of birth.
  4. For all properties consider validation of the values.
  5. Each entity must contain a method that returns its data as JSON.
  6. Also provide methods for retrieving the values of each property individually.
  7. Movies must hold a collection of Actors and the characters being portrayed.
  8. The Movie entity requires a method of retrieving all Actors ordered by descending age.

When creating these classes remember that we are looking for you to showcase your knowledge and understanding of PHP and OOP.

#INSTALL

##Vagrant

  1. vagrant up
  2. composer install (or update)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.